fix: auto repair bugs #54
This commit is contained in:
parent
f8f8c1174f
commit
c94c7bd420
@ -16,7 +16,13 @@ DB_NAME = os.getenv("DB_NAME")
|
||||
|
||||
DATABASE_URL = f"postgresql+asyncpg://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}"
|
||||
|
||||
engine = create_async_engine(DATABASE_URL, echo=True, future=True)
|
||||
engine = create_async_engine(
|
||||
DATABASE_URL,
|
||||
echo=True,
|
||||
future=True,
|
||||
pool_pre_ping=True,
|
||||
pool_recycle=300,
|
||||
)
|
||||
|
||||
async def init_db():
|
||||
async with engine.begin() as conn:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user