chore: print generated/executed SQL
for debugging purposes
This commit is contained in:
parent
e31994efd6
commit
35dbbffd49
@ -5,7 +5,7 @@ from sqlalchemy.orm import sessionmaker
|
||||
SQLALCHEMY_DATABASE_URL = "sqlite:///./sql_app.db"
|
||||
|
||||
engine = create_engine(
|
||||
SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}
|
||||
SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}, echo=True
|
||||
)
|
||||
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
||||
|
||||
|
Reference in New Issue
Block a user