Update MgrCalibreDB.py, MgrCalibreUI.py, and 3 more files...
python - requirements.txt added
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user