pub struct SqlSchemaFileFacts {Show 18 fields
pub path: PathBuf,
pub ddl_projection: Option<Box<SqlSchemaFileFacts>>,
pub unanalyzable_statements: Vec<SqlUnanalyzableStatement>,
pub tables: Vec<SqlCreateTableMetadata>,
pub table_events: Vec<SqlTableSchemaEvent>,
pub table_events_collected: bool,
pub indexes: Vec<SqlCreateIndexMetadata>,
pub dropped_indexes: Vec<SqlDropIndexMetadata>,
pub dropped_tables: Vec<SqlDropIndexMetadata>,
pub foreign_keys: Vec<SqlForeignKeyMetadata>,
pub add_columns: Vec<SqlAddColumnMetadata>,
pub unnamed_constraints: Vec<SqlUnnamedConstraint>,
pub statement_kinds: Vec<SqlStatementKind>,
pub setting_uses: Vec<SqlSettingUse>,
pub function_calls: Vec<SqlFunctionCallFact>,
pub not_valid_constraints: Vec<SqlNamedConstraint>,
pub validated_constraints: Vec<SqlNamedConstraint>,
pub declared_identifiers: Vec<SqlDeclaredIdentifier>,
/* private fields */
}Expand description
Schema facts for one SQL file read through SourceStore.
Fields§
§path: PathBuf§ddl_projection: Option<Box<SqlSchemaFileFacts>>Schema projection that keeps executable DO blocks and leaves stored routines opaque.
unanalyzable_statements: Vec<SqlUnanalyzableStatement>§tables: Vec<SqlCreateTableMetadata>§table_events: Vec<SqlTableSchemaEvent>Qualified CREATE/ALTER/DROP operations in statement order for live-column catalogs.
table_events_collected: boolDistinguishes an empty execution projection from legacy hand-built facts.
indexes: Vec<SqlCreateIndexMetadata>§dropped_indexes: Vec<SqlDropIndexMetadata>§dropped_tables: Vec<SqlDropIndexMetadata>§foreign_keys: Vec<SqlForeignKeyMetadata>§add_columns: Vec<SqlAddColumnMetadata>§unnamed_constraints: Vec<SqlUnnamedConstraint>§statement_kinds: Vec<SqlStatementKind>§setting_uses: Vec<SqlSettingUse>§function_calls: Vec<SqlFunctionCallFact>§not_valid_constraints: Vec<SqlNamedConstraint>§validated_constraints: Vec<SqlNamedConstraint>§declared_identifiers: Vec<SqlDeclaredIdentifier>Implementations§
Trait Implementations§
Source§impl Clone for SqlSchemaFileFacts
impl Clone for SqlSchemaFileFacts
Source§impl Debug for SqlSchemaFileFacts
impl Debug for SqlSchemaFileFacts
Source§impl Default for SqlSchemaFileFacts
impl Default for SqlSchemaFileFacts
impl Eq for SqlSchemaFileFacts
Source§impl PartialEq for SqlSchemaFileFacts
impl PartialEq for SqlSchemaFileFacts
impl StructuralPartialEq for SqlSchemaFileFacts
Auto Trait Implementations§
impl Forget for SqlSchemaFileFacts
impl Freeze for SqlSchemaFileFacts
impl Move for SqlSchemaFileFacts
impl RefUnwindSafe for SqlSchemaFileFacts
impl Send for SqlSchemaFileFacts
impl Sync for SqlSchemaFileFacts
impl Unpin for SqlSchemaFileFacts
impl UnsafeUnpin for SqlSchemaFileFacts
impl UnwindSafe for SqlSchemaFileFacts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more