Python: Model sessionmaker().begin()

This commit is contained in:
Rasmus Wriedt Larsen
2021-09-01 15:14:31 +02:00
parent feb2303e1f
commit 91442e100c
2 changed files with 9 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ with Session() as session:
assert result.fetchall() == [("FOO",)]
with Session.begin() as session:
result = session.execute(raw_sql) # $ MISSING: getSql=raw_sql
result = session.execute(raw_sql) # $ getSql=raw_sql
assert result.fetchall() == [("FOO",)]
# Querying (1.4)