Skip to main content

uqa_storage_sqlite/
lib.rs

1//
2// Unified Query Algebra
3//
4// Copyright (c) 2023-2026 Cognica, Inc.
5//
6
7//! SQLite-backed persistence: connection, catalog, document store,
8//! inverted index, vector index.
9
10pub mod btree_index;
11pub mod catalog;
12mod catalog_lifecycle;
13pub mod compressed_vfs;
14pub mod connection;
15mod connection_lease;
16pub mod detect;
17mod diskann;
18pub mod document_store;
19pub mod inverted_index;
20pub mod vector_index;
21
22pub use btree_index::SQLiteBTreeIndexStore;
23pub use catalog::{Catalog, CURRENT_SCHEMA_VERSION};
24pub use compressed_vfs::{
25    read_authenticated_anchor, SQLiteCompressedContainerAnchor, SQLiteCompressionCodec,
26    SQLiteCompressionOptions,
27};
28pub use connection::{ManagedConnection, Result, SQLiteError};
29pub use connection_lease::SQLiteConnectionLease;
30pub use detect::{detect_database_file_format, DatabaseFileFormat};
31pub use document_store::SQLiteDocumentStore;
32pub use inverted_index::SQLiteInvertedIndex;
33/// The exact `SQLite` driver used by managed physical-connection callbacks.
34pub use rusqlite;
35pub use uqa_storage::catalog::{
36    CatalogFacade, CatalogIndexRow, ColumnStatsInput, ColumnStatsRow, EdgeRow, ForeignServerRow,
37    ForeignTableRow, TableSchema, VectorFieldSchema,
38};
39pub use vector_index::{
40    RetainedSQLiteDiskANNCanonical, SQLiteDiskANNCanonical, SQLiteDiskANNHandle, SQLiteHNSWIndex,
41    SQLiteIVFIndex, SQLiteVectorIndex,
42};
43
44pub mod backend;
45pub mod block_max_index;
46pub mod graph;
47pub mod key_value;
48pub mod mvcc;
49pub mod notifications;
50mod read_control;
51pub mod transaction;
52mod value_index_key;
53
54pub use backend::{SQLiteStorageBackend, SQLiteStorageProvider};
55pub use block_max_index::SQLiteBlockMaxPersistence;
56pub use graph::SQLiteGraphStore;
57pub use key_value::{
58    SQLiteKeyValueCatalog, SQLiteKeyValueStorage, SQLiteKeyValueStorageBackend, SQLiteKeyValueStore,
59};
60pub use mvcc::SQLiteRecordStore;
61pub use transaction::SQLiteTransaction;