Expand description
Schema management for SQL queries
This module provides functionality for:
- Representing database schemas (tables, columns, types)
- Looking up column types for query optimization
- Normalizing identifiers per dialect
Based on the Python implementation in sqlglot/schema.py.
Structs§
- Column
Info - A column with its type and visibility
- Mapping
Schema - A mapping-based schema implementation
Enums§
- Schema
Error - Errors that can occur during schema operations
- Schema
Node - A node in the schema tree
Constants§
- TABLE_
PARTS - Supported table argument names
Traits§
- Schema
- Abstract trait for database schemas
Functions§
- ensure_
schema - Ensure we have a schema instance
- flatten_
schema_ paths - Flatten a nested schema to get all table paths
- from_
simple_ map - Helper to build a schema from a simple map
- nested_
get - Get a value from a nested dictionary-like structure
- nested_
set - Set a value in a nested dictionary-like structure
- normalize_
name - Normalize a table or column name according to dialect rules
Type Aliases§
- Schema
Result - Result type for schema operations