update
This commit is contained in:
+1
-2
@@ -1,10 +1,9 @@
|
||||
from peewee import SqliteDatabase, Model
|
||||
from core.logger import LogLevel, PrintLog
|
||||
|
||||
# 连接到SQLite数据库
|
||||
db: SqliteDatabase = SqliteDatabase('example.db')
|
||||
db.connect()
|
||||
PrintLog(LogLevel.INFO, '- [成功]数据库连接')
|
||||
print("Database connected")
|
||||
|
||||
# 定义基础模型类
|
||||
class BaseModel(Model):
|
||||
|
||||
Reference in New Issue
Block a user