I with push my head through a conrete wall

I hate Joins
This commit is contained in:
Michał Gdula 2023-03-05 18:16:28 +00:00
parent 0a27d79a82
commit 91278e2d11
10 changed files with 180 additions and 187 deletions

View file

@ -12,6 +12,8 @@ from sqlalchemy.orm import declarative_base, relationship, backref, mapped_colum
path_to_db = os.path.join(platformdirs.user_config_dir('onlylegs'), 'gallery.sqlite')
engine = create_engine(f'sqlite:///{path_to_db}', echo=False)
# engine = create_engine(f'postgresql://username:password@host:port/database_name', echo=False)
# engine = create_engine(f'mysql://username:password@host:port/database_name', echo=False)
base = declarative_base()