Extract single shared Database pool, eliminate 4 duplicated pool creations
- Create navi/db.py::Database managing one asyncpg pool
- KvStore, PgSessionStore, MemoryStore, RecallScheduler now accept pool in constructor
- AppContainer holds Database, shutdown closes one pool instead of 4
- create_container creates one pool and passes it to all stores
- All tests updated to set _initialized=True on fakes to skip DDL

392 passed, 1 skipped

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 4c5f683 commit f002ea16f058b09201ff66821cadc4bd43008d7c
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 18 May
Showing 10 changed files
View
navi/core/container.py
View
navi/core/pg_session_store.py
View
navi/core/scheduler.py
View
navi/db.py 0 → 100644
View
navi/main.py
View
navi/memory/store.py
View
navi/store/__init__.py
View
tests/conftest_factory.py
View
tests/integration/conftest.py
View
tests/unit/store/test_kv_store.py