Commit 62c38f60 by aa.gusti

Merge branch 'beta-4.2' of https://git.opensipkd.com/aa.gusti/opensipkd-base into beta-4.2

2 parents 3a1948d0 a340056b
......@@ -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!