uqa-storage-sqlite 0.3.8

SQLite catalog, indexes, compressed storage, graph and key/value providers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//
// Unified Query Algebra
//
// Copyright (c) 2023-2026 Cognica, Inc.
//

//! Durable secondary-index semantic definitions.

use super::super::super::{Catalog, Result};

pub(super) fn migrate(tx: &rusqlite::Connection) -> Result<()> {
    let columns = Catalog::table_columns(tx, "_catalog_indexes")?.unwrap_or_default();
    if !columns.contains_key("definition") {
        tx.execute_batch("ALTER TABLE _catalog_indexes ADD COLUMN definition TEXT")?;
    }
    Ok(())
}