fix: SQLite 싱글톤 연결 I/O 에러 수정 + clawdbot 모델 오버라이드
- dbsetup: get_sqlite_connection()에 SELECT 1 헬스체크 추가 (죽은 연결 자동 재생성) - pos_sales_gui: 싱글톤 SQLite conn.close() 제거 (I/O closed file 에러 원인) - qr_token_generator: DatabaseManager() 새 생성 → 전역 db_manager 싱글톤 사용 - clawdbot_client: model 파라미터 추가, 업셀링에 claude-sonnet-4-5 지정 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -193,6 +193,13 @@ class DatabaseManager:
|
||||
Returns:
|
||||
sqlite3.Connection: SQLite 연결 객체
|
||||
"""
|
||||
# 연결이 닫혀있으면 재생성
|
||||
if self.sqlite_conn is not None:
|
||||
try:
|
||||
self.sqlite_conn.execute("SELECT 1")
|
||||
except Exception:
|
||||
self.sqlite_conn = None
|
||||
|
||||
if self.sqlite_conn is None:
|
||||
# 파일 존재 여부 확인
|
||||
is_new_db = not self.sqlite_db_path.exists()
|
||||
|
||||
Reference in New Issue
Block a user