uqa-engine 0.3.5

Engine: schema-aware table store, catalog restore, transactions
//
// Unified Query Algebra
//
// Copyright (c) 2023-2026 Cognica, Inc.
//

use super::{
    initial_random_state, Analyzer, Arc, AtomicBool, BTreeMap, CatalogFacade, ColumnStatsRow,
    DeepModel, DurableCatalogState, Engine, EpochCoordinator, FieldName, IVFIndexParams,
    ManagedConnection, Path, PersistentStorageBackend, PersistentStorageProvider,
    PersistentStorageSession, QueryRuntime, RuntimeExtensions, RwLock,
    SQLiteCompressedContainerAnchor, SQLiteCompressionOptions, SQLiteError, SQLiteStorageProvider,
    SessionContext, StorageBackendError, StorageBackendResult, StorageContext, TableSchema,
    TableState, Value, VectorIndex, SQL_FUNCTION_DEPTH_LIMIT,
};

mod authenticated_session;
mod cache_refresh;
mod catalog_sync;
mod data_sync;
mod graphs;
mod lifecycle;
mod registries;
mod session_seed;
mod statistics;
mod table_restore;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub(crate) enum CatalogRestoreMode {
    InitialMigration,
    LoadOnly,
}

impl CatalogRestoreMode {
    pub(crate) fn allows_migration(self) -> bool {
        self == Self::InitialMigration
    }
}

#[cfg(test)]
mod tests;