We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15a9527 commit a93973aCopy full SHA for a93973a
backend/cli.py
@@ -145,7 +145,8 @@ async def import_table(
145
) -> None:
146
try:
147
obj = ImportParam(app=app, table_schema=table_schema, table_name=table_name)
148
- await gen_service.import_business_and_model(obj=obj)
+ async with async_db_session.begin() as db:
149
+ await gen_service.import_business_and_model(db=db, obj=obj)
150
except Exception as e:
151
raise cappa.Exit(e.msg if isinstance(e, BaseExceptionError) else str(e), code=1)
152
0 commit comments