Update MgrCalibreDB.py, MgrCalibreUI.py, and 3 more files...

python - requirements.txt added
This commit is contained in:
2025-08-03 21:03:16 +09:00
parent d5f2d82bc9
commit 2c36327ae8
5 changed files with 98 additions and 11 deletions

View File

@@ -1,3 +1,5 @@
from abc import abstractmethod
import sqlite3
import UtilPack as util
@@ -12,10 +14,9 @@ class MgrSQLiteDB:
def __exit__(self, ex_type, ex_value, traceback):
self.conn.close()
@abstractmethod
def init(self):
# 데이터베이스 연결 (파일이 없으면 새로 생성됨)
self.conn = sqlite3.connect(self.path)
self.cursor = self.conn.cursor()
pass
# 쿼리를 실행한다. Commit 여부를 선택할 수 있다.
def SQLExecute(self, cursor: sqlite3.Cursor, strSQL: str, bCommit: bool = True):