260706_2_로그인 인증 검토
This commit is contained in:
+4
-1
@@ -34,7 +34,10 @@ async def init_db_pool() -> aiomysql.Pool:
|
||||
password=DB_PASSWORD,
|
||||
minsize=DB_POOL_MIN,
|
||||
maxsize=DB_POOL_MAX,
|
||||
autocommit=False,
|
||||
# autocommit=False면 SELECT만 하고 반납된 커넥션에 열린 트랜잭션(옛 스냅샷)이
|
||||
# 남아, 다른 커넥션이 커밋한 데이터(예: 방금 생성된 세션)를 못 읽는다.
|
||||
# 다중 문장 트랜잭션은 connection.begin()을 명시적으로 사용한다.
|
||||
autocommit=True,
|
||||
charset="utf8mb4",
|
||||
init_command="SET time_zone='+00:00'",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user