Archived
更新
This commit is contained in:
4 files changed
+61
-27
No files matched your search
+2
-1
@@ -8,6 +8,7 @@
|
||||
|
||||
import sqlite3
|
||||
from typing import List
|
||||
from config import Config
|
||||
|
||||
|
||||
class SQLite:
|
||||
@@ -18,7 +19,7 @@ class SQLite:
|
||||
初始化SQLite对象
|
||||
完成后会自动提交, 自动关闭
|
||||
"""
|
||||
self.__path = './app/db/data.db'
|
||||
self.__path = Config.SQLALCHEMY_DATABASE_URI
|
||||
self.__conn = sqlite3.connect(self.__path)
|
||||
self.__cursor = self.__conn.cursor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user