62 lines
1.5 KiB
Python
62 lines
1.5 KiB
Python
import sqlite3
|
|
|
|
import UtilPack as util
|
|
import MgrSQLiteDB as MyDB
|
|
|
|
class MgrPupilColDB(MyDB.MgrSQLiteDB):
|
|
def __init__(self, path: str):
|
|
super().__init__(path)
|
|
self.init()
|
|
|
|
def init(self):
|
|
# 데이터베이스 연결 (파일이 없으면 새로 생성됨)
|
|
self.conn = sqlite3.connect(f'file:{self.path}?charset=UTF-8', uri=True)
|
|
self.cursor = self.conn.cursor()
|
|
|
|
# ID -> HitomiID, ArchiveID, Title, Authors, Group, Series, Type. Language, Tags, Description,
|
|
def GetBookByID(self, nID: int) -> dict:
|
|
pass
|
|
|
|
def GetArchiveBrBookID(self, nID: int ) -> list[str]:
|
|
pass
|
|
|
|
def GetAuthorByID(self, nID: int) -> list[str]:
|
|
pass
|
|
|
|
def GetTagByID(self, nID: int) -> list[str]:
|
|
pass
|
|
|
|
def GetSeriesByID(self, nID: int) -> list[str]:
|
|
pass
|
|
|
|
def GetGroupByID(self, nID: int) -> list[str]:
|
|
pass
|
|
|
|
def AddBook(self, strHitomiID: str, strArchiveID: str, strTitle: str, listAuthors: list[str],
|
|
listGroups: list[str], listSeries: list[str], strType: str, strLanguage: str,
|
|
listTags: list[str], strDescription: str) -> int:
|
|
pass
|
|
|
|
def AddAuthor(self, strName: str) -> int:
|
|
pass
|
|
|
|
def AddTag(self, strName: str) -> int:
|
|
pass
|
|
|
|
def AddsSeries(self, strName: str) -> int:
|
|
pass
|
|
|
|
def AddGroup(self, strName: str) -> int:
|
|
pass
|
|
|
|
def AddArchive(self, strName: str, setArcPath: str) -> int:
|
|
pass
|
|
|
|
def AddFileInfo(self) -> int:
|
|
pass
|
|
|
|
|
|
|
|
|
|
|