наработки Вовы и Димы
This commit is contained in:
parent
c43814ccd4
commit
ee79b9d4c5
@ -4,8 +4,7 @@ from sqlalchemy.orm import sessionmaker
|
|||||||
from sqlalchemy.ext.declarative import declarative_base
|
from sqlalchemy.ext.declarative import declarative_base
|
||||||
|
|
||||||
|
|
||||||
SQLALCHEMY_DATABASE_URL = 'postgresql+asyncpg://postgres:D560c34V112Ak@localhost/porridger'
|
SQLALCHEMY_DATABASE_URL = "sqlite+aiosqlite:///./sql_app.db"
|
||||||
|
|
||||||
engine = create_async_engine(SQLALCHEMY_DATABASE_URL, echo=True)
|
engine = create_async_engine(SQLALCHEMY_DATABASE_URL, echo=True)
|
||||||
|
|
||||||
SessionLocal = sessionmaker(bind=engine, class_=AsyncSession, expire_on_commit=False)
|
SessionLocal = sessionmaker(bind=engine, class_=AsyncSession, expire_on_commit=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user