Skip to main content

Module schema

Module schema 

Source
Expand description

Arrow schema definitions for LanceDB tables.

Re-exportsยง

use arrow_schema::DataType; ๐Ÿ”’
use arrow_schema::Field; ๐Ÿ”’
use arrow_schema::Schema; ๐Ÿ”’
use arrow_schema::TimeUnit; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’

Structsยง

SchemaSidecar
Persisted schema version for an existing Lance index.

Constantsยง

CHUNKS_SCHEMA_VERSION
Current chunks table schema version.
INITIAL_INDEX_REVISION
First assigned revision for a new or lazily migrated index.
SCHEMA_SIDECAR_FILENAME
Sidecar written beside the Lance database (โ€ฆ/indices/<hash>/ragfs-schema.json).

Functionsยง

chunks_schema
Schema for the chunks table.
effective_index_revision
Treat 0 (missing / uninitialized) as the first persisted revision.
files_schema
Schema for the files metadata table.
missing_media_columns
Missing additive media columns. Legacy rows are backfilled to text/null/null.
missing_scope_columns
Scope columns missing from a pre-v2 chunks table (nullable so add_columns can fill nulls).