loop: disable autoflushing, don't expire session on commit
This commit is contained in:
+5
-1
@@ -34,7 +34,11 @@ def main():
|
|||||||
load_config(args.config)
|
load_config(args.config)
|
||||||
|
|
||||||
engine = create_engine(config_db_string())
|
engine = create_engine(config_db_string())
|
||||||
sql_session = Session(engine)
|
sql_session = Session(
|
||||||
|
engine,
|
||||||
|
expire_on_commit=False,
|
||||||
|
autoflush=False,
|
||||||
|
)
|
||||||
|
|
||||||
if args.subcommand == "loop":
|
if args.subcommand == "loop":
|
||||||
import dibbler.subcommands.loop as loop
|
import dibbler.subcommands.loop as loop
|
||||||
|
|||||||
Reference in New Issue
Block a user