add command to dump existing listing from fs to db

This commit is contained in:
Viktor Barzin 2025-06-04 21:56:26 +00:00
parent f7fb891648
commit 8b2025e700
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
6 changed files with 121 additions and 13 deletions

View file

@ -5,7 +5,7 @@ from sqlalchemy.orm import sessionmaker
# DATABASE_URL = "postgresql://user:password@localhost/db_name"
DATABASE_URL = "sqlite:///data/wrongmove.db"
engine = create_engine(DATABASE_URL, echo=True) # `echo=True` for debug logs
engine = create_engine(DATABASE_URL, echo=False) # `echo=True` for debug logs
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)