Skip to content

Commit

Permalink
Initialize default engine in create function
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatologist committed Nov 19, 2023
1 parent 54fda10 commit 25d8463
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pyomop/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def cli(verbose, create, dbtype, host, port, user, pw, name, schema, vocab):
print("verbose")
if create:
cdm = CdmEngineFactory(dbtype, host, port, user, pw, name, schema)
# initialize default engine
engine = cdm.engine
asyncio.run(cdm.init_models(metadata))
if vocab is not '':
cdm = CdmEngineFactory(dbtype, host, port, user, pw, name, schema)
Expand Down

0 comments on commit 25d8463

Please sign in to comment.