refactor(db): 修复异步连接池无界增长,并完成 SQLAlchemy 2.0 迁移与分层归位 (#6320)

This commit is contained in:
Aqr-K
2026-08-15 06:58:38 +08:00
committed by GitHub
parent e28de9cfe1
commit 8a11214a43
252 changed files with 11405 additions and 2889 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ from datetime import datetime
from typing import List, Optional, Tuple, Union
from app.domain.context import SubtitleInfo, TorrentInfo
from app.db.site_oper import SiteOper
from app.db.oper.site import SiteOper
from app.foundation.reflection import ModuleHelper
from app.application.site.sites import SitesHelper # pylint: disable=no-name-in-module
from app.runtime.log import logger
@@ -17,7 +17,7 @@ from app.modules.indexer.spider.sunnypt import SunnyPTSpider
from app.modules.indexer.spider.tnode import TNodeSpider
from app.modules.indexer.spider.torrentleech import TorrentLeech
from app.schemas.types import MediaSource
from app.domain.media import resolve_media_identity
from app.schemas.media import resolve_media_identity
from app.modules.indexer.spider.yema import YemaSpider
from app.schemas import SiteUserData
from app.schemas.types import MediaType, ModuleType, OtherModulesType
+1 -1
View File
@@ -2,7 +2,7 @@ import urllib.parse
from typing import Tuple, List
from app.runtime.config import settings
from app.db.systemconfig_oper import SystemConfigOper
from app.db.oper.systemconfig import SystemConfigOper
from app.runtime.log import logger
from app.schemas import MediaType
from app.adapters.network.http import RequestUtils, AsyncRequestUtils
+1 -1
View File
@@ -1,7 +1,7 @@
from typing import Tuple, List, Optional
from app.runtime.config import settings
from app.db.systemconfig_oper import SystemConfigOper
from app.db.oper.systemconfig import SystemConfigOper
from app.runtime.log import logger
from app.schemas import MediaType
from app.adapters.network.http import RequestUtils, AsyncRequestUtils
+1 -1
View File
@@ -5,7 +5,7 @@ from typing import Tuple, List, Optional
from urllib.parse import urlparse
from app.runtime.config import settings
from app.db.systemconfig_oper import SystemConfigOper
from app.db.oper.systemconfig import SystemConfigOper
from app.runtime.log import logger
from app.schemas import MediaType
from app.adapters.network.http import RequestUtils, AsyncRequestUtils
+1 -1
View File
@@ -3,7 +3,7 @@ import json
from typing import List, Optional, Tuple
from app.runtime.config import settings
from app.db.systemconfig_oper import SystemConfigOper
from app.db.oper.systemconfig import SystemConfigOper
from app.runtime.log import logger
from app.schemas import MediaType
from app.adapters.network.http import RequestUtils, AsyncRequestUtils