Spaces:
Paused
Paused
File size: 861 Bytes
aceb1b2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | """
Universal Persistence Layer
SQLite-backed persistence for features that need project-scoped state:
memos, search index, codebook, cases, queries, smart codes.
A single `<task_dir>/project.sqlite` file holds all tables. Modules register
their schemas via the migration registry; on each `get_db()` call any pending
migrations run inside a transaction.
This package is universal — not gated to QDA Mode. Both standard annotation
projects and QDA Mode projects can read/write to the same DB; QDA Mode just
populates more tables.
"""
from .sqlite import (
Migration,
get_db,
close_db,
clear_db_cache,
clear_migrations,
register_migration,
registered_migrations,
)
__all__ = [
"Migration",
"get_db",
"close_db",
"clear_db_cache",
"clear_migrations",
"register_migration",
"registered_migrations",
]
|