Commit a340056b by Owo Sugiana

Merge branch 'beta-4.2-bugfixed' into 'beta-4.2'

Bug fixed pembuatan schema

See merge request !5
2 parents fbef0a9c 99b22b04
......@@ -88,17 +88,10 @@ def usage(argv):
def create_schema(engine, schema):
# sql = select(text('schema_name')).select_from(
# text('information_schema.schemata')).where(
# text("schema_name = '%s'" % schema))
# if isinstance(engine.dialect, oracle.dialect):
# sql = select(['owner']).select_from('dba_segments').where(
# "owner = '%s'" % schema.upper())
# log.debug(sql)
with engine.connect() as conn:
sql = CreateSchema(schema, if_not_exists=True)
log.debug(f"Execute: {sql}")
conn.execute(sql)
conn.commit()
def read_file(filename):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!