添加对 peewee 的旧数据库的兼容层,初步重构插件的 database API

This commit is contained in:
DrSmoothl
2026-02-09 22:44:56 +08:00
parent bf46d540f1
commit 60f76e4d4e
14 changed files with 226 additions and 424 deletions

View File

@@ -4,7 +4,7 @@ import random
from collections import OrderedDict
from typing import List, Dict, Optional, Callable
from json_repair import repair_json
from peewee import fn
from sqlalchemy import func as fn
from src.common.logger import get_logger
from src.common.database.database_model import Jargon