add command to dump existing listing from fs to db
This commit is contained in:
parent
f7fb891648
commit
8b2025e700
6 changed files with 121 additions and 13 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue