Structs§
- Atomic
View State - Atomic wrapper for #name
- BTree
Characteristics - BTree
Table - Check
Constraint - ColDef
- Column
- Columns
Mut - Foreign
Key - From
Clause Subquery - A derived table from a FROM clause subquery.
- From
Clause Subquery CteMetadata - Index
- Index
Column - Make
From Btree State - State machine for async schema loading - passed by caller, not stored on Schema
- Pseudo
Cursor Type - Reset
OnClone - RAII wrapper that resets its inner value when cloned.
- Resolved
FkRef - A single resolved foreign key where
parent_table == target. - Resolved
Type - Custom type definition, loaded from sqlite_turso_types A fully-resolved custom type: the chain of TypeDefs from the named type up to the ultimate primitive, plus the primitive name itself.
- Schema
- Sequence
- Schema descriptor for a sequence. Pure data — the runtime state lives
in the backing table
__turso_internal_seq_<name>and is read from disk byInsn::SequenceComputeNext+ surrounding cursor bytecode on every nextval/setval call. Seecore/translate/sequence.rsand the disk-only design notes above. - Struct
Def - Definition for a STRUCT composite type.
- Struct
Field Def - Field definition within a StructDef.
- Trigger
- Trigger structure
- TypeDef
- Union
Def - Definition for a UNION discriminated union type.
- Union
Variant Def - Variant definition within a UnionDef.
- Unique
Set - View
- Simple view structure for non-materialized views
Enums§
- Column
Layout - Maps schema column indices to register offsets for DML operations.
- Generated
Type - Make
From Btree Phase - Phase tracking for async schema loading
- Schema
Object Type - Type of schema object for conflict checking
- Table
- Type
- Type
DefKind - The kind-specific payload of a custom type.
- View
State
Constants§
- AUTOINCREMENT_
SEQ_ PREFIX - DBSP_
TABLE_ PREFIX - EXPR_
INDEX_ SENTINEL - The Position in Table for indexes which are arbitrary expressions (index.expr.is_some())
- RESERVED_
TABLE_ PREFIXES - Internal table prefixes that should be protected from CREATE/DROP
- ROWID_
SENTINEL - Used to refer to the implicit rowid column in tables without an alias during UPDATE
- SCHEMA_
TABLE_ NAME - SCHEMA_
TABLE_ NAME_ ALT - SEQ_
BACKING_ TABLE_ PREFIX - SQLITE_
SEQUENCE_ TABLE_ NAME - TEMP_
SCHEMA_ TABLE_ NAME - TEMP_
SCHEMA_ TABLE_ NAME_ ALT - TURSO_
INTERNAL_ PREFIX - TURSO_
TYPES_ TABLE_ NAME
Functions§
- _build_
pseudo_ table - allow_
user_ dml - autoincrement_
sequence_ name - Name of the hidden sequence owned by an AUTOINCREMENT table.
- collect_
column_ dependencies_ of_ expr - Extract all column name references from an expression as a set.
columnsis used to resolve pre-resolvedExpr::Column { SELF_TABLE }back to names. - create_
table - is_
system_ table - Check if a table name refers to a system table that should be protected from direct writes
- render_
gencol_ expr_ sql_ with_ new_ names - Re-render the SQL text of a generated-column expression using current column names. The input
AST may have been previously resolved into
Expr::Column { table: SELF_TABLE, column: idx, .. }nodes; we replace each such self-table reference with a freshExpr::Id(<col-name>)before stringifying so the result round-trips through the parser, even if a referenced column was renamed since the originaloriginal_sqlwas captured. - resolve_
gencol_ expr_ columns - Resolve Expr::Id / Expr::Qualified / Expr::DoublyQualified in a generated column
or partial-index expression to
Expr::Column { table: SELF_TABLE, column: idx }. - rewrite_
value_ to_ column - Recursively rewrite
Expr::Id("value")(case-insensitive) toExpr::Id(col_name). - sqlite_
schema_ table - translate_
ident_ to_ string_ literal - SQLite treats bare identifiers in DEFAULT clauses as string literals.
E.g.,
DEFAULT hellobecomes the string “hello”, not a column reference.
Type Aliases§
- Views
Map - Type alias for regular views collection