Skip to main content

Module sqlite

Module sqlite 

Source

Structs§

Database
Database connection pool with migration support.
PaperState
SqliteAnnotationRepository
SqliteAssessmentRepository
SqliteCitationRepository
SqlitePaperAliasRepository
SqlitePaperRepository
SqlitePaperStateRepository
SqlitePaperTagRepository
SqliteQuestionRepository
SqliteSearchRepository
SqliteShortlistRepository
SqliteTransaction
Re-export of rusqlite::Transaction so downstream crates (e.g. scitadel-mcp’s bib-import orchestrator in #157) can drive multi- repo transactions without taking a direct rusqlite dependency. Represents a transaction on a database connection.
SqliteTuiStateRepository
TuiState

Constants§

SOURCE_BIBTEX_IMPORT
Free-form source tag recorded alongside an alias.
SOURCE_REKEY
Source tag for aliases preserved by scitadel bib rekey — the pre-rekey citation key gets recorded so manuscripts that still cite the paper by its old key continue to resolve via lookup.
TAG_SOURCE_BIBTEX_IMPORT
Free-form source tag recorded alongside a paper-tag row. Matches the alias counterpart so audit queries can grep by source across both tables. Re-declared here for symmetry with paper_aliases.

Functions§

resolve_anchor
Resolve an anchor against current paper text, updating status and (if the quote shifted) char_range in place. Four-step W3C-style pipeline (#96):
run_migrations
Run all pending migrations, skipping already-applied ones.