添加对 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

@@ -3,7 +3,7 @@ import random
import time
from typing import Any, Dict, List, Optional, Tuple
from peewee import fn
from sqlalchemy import func as fn
from src.common.logger import get_logger
from src.config.config import global_config, model_config