Files
xiaoxia-saas/docs/CONNECTION-POOL.md
T
Xiaoxia AI e36af9e7a9
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 17s
Deploy / Deploy Staging (push) Successful in 1m57s
Deploy / Deploy Production (push) Has been skipped
refactor(adapters): remove legacy postgres adapter
2026-06-21 10:11:18 +08:00

19 lines
626 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 数据库连接池说明(已归档)
`packages/adapters/postgres.connection_pool` 已删除,不再是小虾 SaaS 主线。
当前主线:
- 持久化 adapter`packages/adapters/sqlalchemy_impl/`
- SQLAlchemy session/engine`packages/adapters/sqlalchemy_impl/session.py`
- API 依赖注入入口:`apps/api/app/dependencies.py`
- Schema 执行真源:Alembic,见 `docs/SCHEMA-MAINLINE.md`
不要恢复或引用:
```python
from packages.adapters.postgres.connection_pool import db_pool
```
如需调整连接池,请在 SQLAlchemy engine/session 配置层处理,而不是新增 psycopg adapter。