Crate vibesql_catalog

Crate vibesql_catalog 

Source
Expand description

Catalog - Schema Metadata Storage

Provides metadata structures for tables and columns along with the catalog registry that tracks table schemas.

Re-exports§

pub use errors::CatalogError;

Modules§

errors

Structs§

Assertion
Assertion - Named constraint that checks a boolean condition (SQL:1999 Feature F671/F672)
Catalog
Database catalog - manages all schemas and their objects.
CharacterSet
Character Set - Character encoding
Collation
Collation - String comparison rules
ColumnIdentifier
A SQL column identifier with proper case handling per SQL:1999.
ColumnSchema
Column definition in a table schema.
Domain
Domain - User-defined data type with constraints
DomainConstraintDef
Domain constraint definition
DomainDefinition
Domain definition stored in the catalog
ForeignKeyConstraint
Foreign key constraint definition.
Function
Function - Stored function (SQL:1999 Feature P001)
FunctionParam
Parameter in a function definition
IndexMetadata
Index metadata stored in the catalog
PrivilegeGrant
A privilege grant record tracking who has what privilege on which object.
Procedure
Procedure - Stored procedure (SQL:1999 Feature P001)
ProcedureParam
Parameter in a procedure definition
Schema
A schema - named collection of database objects (tables, views, etc.)
Sequence
Sequence - Auto-incrementing number generator
TableIdentifier
A SQL identifier with proper case handling per SQL:1999.
TableSchema
Table schema definition.
Translation
Translation - Character set translation
TriggerDefinition
Trigger definition stored in the catalog
TypeAttribute
Attribute in a structured type
TypeDefinition
A user-defined type definition stored in the catalog
UserDefinedType
User-defined Type (UDT)
ViewDefinition
View definition stored in the catalog

Enums§

FunctionBody
Body of a function
IndexType
Type of physical index structure
IndexedColumn
Column specification within an index - can be either a simple column or an expression
ParameterMode
Parameter mode: IN, OUT, or INOUT
ProcedureBody
Body of a procedure
ReferentialAction
Referential action for foreign key constraints.
SortOrder
Sort order for indexed columns
SqlSecurity
SQL SECURITY characteristic for procedures and functions (Phase 6)
StorageFormat
Storage format for tables
TypeDefinitionKind
Kind of type definition
VectorDistanceMetric
Distance metric for vector index operations
ViewDropBehavior
Drop behavior for views

Constants§

DEFAULT_SCHEMA
Default schema name for SQLite compatibility. SQLite uses “main” as the default database/schema name.
TEMP_SCHEMA
Temporary schema name for SQLite compatibility. SQLite stores temporary tables in a separate “temp” schema. Temp tables are not persisted and have session scope.

Type Aliases§

Identifier
A general SQL identifier (for indexes, views, etc.)