Skip to main content

ScalarTypeSchema

Trait ScalarTypeSchema 

Source
pub trait ScalarTypeSchema {
Show 17 methods // Required methods fn has_unqualified_column(&self, name: &str) -> bool; fn column_is_ambiguous(&self, name: &str) -> bool; fn type_of(&self, name: &str) -> Option<&ColumnType>; fn column_type(&self, position: usize) -> Option<&ColumnType>; fn internal_type(&self, column: InternalColumnRef) -> Option<&ColumnType>; fn has_qualifier(&self, qualifier: &str) -> bool; fn has_qualified_column(&self, qualifier: &str, name: &str) -> bool; fn qualified_column_is_ambiguous(&self, qualifier: &str, name: &str) -> bool; fn qualified_type(&self, qualifier: &str, name: &str) -> Option<&ColumnType>; fn columns_are_open(&self, qualifier: Option<&str>) -> bool; fn physical_schema(&self) -> Option<&RowSchema>; // Provided methods fn observed_expression_type( &self, _: &ScalarExpr, ) -> Option<Option<&ColumnType>> { ... } fn whole_row_type(&self, _qualifier: &str) -> Option<&ColumnType> { ... } fn column_collation(&self, position: usize) -> Option<u32> { ... } fn collation_of(&self, name: &str) -> Option<u32> { ... } fn qualified_collation(&self, qualifier: &str, name: &str) -> Option<u32> { ... } fn internal_collation(&self, column: InternalColumnRef) -> Option<u32> { ... }
}
Expand description

Borrowed schema operations used by scalar type propagation and binding. Physical schemas retain their complete alias, ambiguity, open-column and executor-attribute behavior; declared column slices supply an unqualified positional namespace without allocating another schema generation.

Required Methods§

Source

fn has_unqualified_column(&self, name: &str) -> bool

Source

fn column_is_ambiguous(&self, name: &str) -> bool

Source

fn type_of(&self, name: &str) -> Option<&ColumnType>

Source

fn column_type(&self, position: usize) -> Option<&ColumnType>

Source

fn internal_type(&self, column: InternalColumnRef) -> Option<&ColumnType>

Source

fn has_qualifier(&self, qualifier: &str) -> bool

Source

fn has_qualified_column(&self, qualifier: &str, name: &str) -> bool

Source

fn qualified_column_is_ambiguous(&self, qualifier: &str, name: &str) -> bool

Source

fn qualified_type(&self, qualifier: &str, name: &str) -> Option<&ColumnType>

Source

fn columns_are_open(&self, qualifier: Option<&str>) -> bool

Source

fn physical_schema(&self) -> Option<&RowSchema>

Preserve the physical outer-row interface used by existing custom scalar-subquery resolvers. Declared column views have no query arena or physical outer row.

Provided Methods§

Source

fn observed_expression_type( &self, _: &ScalarExpr, ) -> Option<Option<&ColumnType>>

Reuse an already analyzed expression occurrence in this scope. Some(None) preserves an observed unknown type; None asks the caller to infer the expression normally. Borrowed observations must not outlive their original expressions or parameter environment.

Source

fn whole_row_type(&self, _qualifier: &str) -> Option<&ColumnType>

The named composite identity of a relation’s whole row, when the caller retains it. Query-only scopes may expose an anonymous record instead.

Source

fn column_collation(&self, position: usize) -> Option<u32>

Source

fn collation_of(&self, name: &str) -> Option<u32>

Source

fn qualified_collation(&self, qualifier: &str, name: &str) -> Option<u32>

Source

fn internal_collation(&self, column: InternalColumnRef) -> Option<u32>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§