pub struct SqlSchemaFileFacts {Show 23 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 single_statement_transactions: Vec<usize>,
pub query_marker_tokens_unavailable: bool,
pub complex_queries: Vec<SqlComplexQuery>,
pub unanalyzable_sql_lines: Vec<usize>,
pub catalog_usage: Option<SqlCatalogUsage>,
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>§single_statement_transactions: Vec<usize>Lines of explicit default transactions that contain one complete DML statement.
complex_queries: Vec<SqlComplexQuery>§unanalyzable_sql_lines: Vec<usize>§catalog_usage: Option<SqlCatalogUsage>§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 SqlSchemaFileFactswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const SqlSchemaFileFacts is !null: Freeze,
PhantomData<SqlSchemaFileFacts>: Freeze,
PhantomData<SqlUnanalyzableStatement>: Freeze,
PhantomData<SqlCreateTableMetadata>: Freeze,
PhantomData<SqlTableSchemaEvent>: Freeze,
PhantomData<SqlCreateIndexMetadata>: Freeze,
PhantomData<SqlDropIndexMetadata>: Freeze,
PhantomData<SqlForeignKeyMetadata>: Freeze,
PhantomData<SqlAddColumnMetadata>: Freeze,
PhantomData<SqlUnnamedConstraint>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<SqlComplexQuery>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
*const LeafNode<(String, String), SetValZST> is !null: Freeze,
PhantomData<Box<((String, String), SetValZST)>>: Freeze,
*const LeafNode<usize, SetValZST> is !null: Freeze,
PhantomData<Box<(usize, SetValZST)>>: Freeze,
PhantomData<Bindings>: Freeze,
PhantomData<QueryFrame>: Freeze,
PhantomData<SqlStatementKind>: Freeze,
PhantomData<SqlSettingUse>: Freeze,
PhantomData<SqlPolicyClauseUse>: Freeze,
PhantomData<SqlFunctionCallFact>: Freeze,
PhantomData<SqlNamedConstraint>: Freeze,
PhantomData<SqlDeclaredIdentifier>: Freeze,
impl Move for SqlSchemaFileFacts
impl RefUnwindSafe for SqlSchemaFileFacts
impl Send for SqlSchemaFileFactswhere
RawVecInner: Send,
BoxRaw<SqlSchemaFileFacts>: Send,
NodeRef<Owned, SqlQueryComplexity, SetValZST, LeafOrInternal>: Send,
BoxRaw<(SqlQueryComplexity, SetValZST)>: Send,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send,
BoxRaw<(String, SetValZST)>: Send,
NodeRef<Owned, (String, String), SetValZST, LeafOrInternal>: Send,
BoxRaw<((String, String), SetValZST)>: Send,
NodeRef<Owned, usize, SetValZST, LeafOrInternal>: Send,
BoxRaw<(usize, SetValZST)>: Send,
NodeRef<Owned, String, BTreeSet<String>, LeafOrInternal>: Send,
BoxRaw<(String, BTreeSet<String>)>: Send,
impl Sync for SqlSchemaFileFactswhere
RawVecInner: Sync,
BoxRaw<SqlSchemaFileFacts>: Sync,
NodeRef<Owned, SqlQueryComplexity, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(SqlQueryComplexity, SetValZST)>: Sync,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(String, SetValZST)>: Sync,
NodeRef<Owned, (String, String), SetValZST, LeafOrInternal>: Sync,
BoxRaw<((String, String), SetValZST)>: Sync,
NodeRef<Owned, usize, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(usize, SetValZST)>: Sync,
NodeRef<Owned, String, BTreeSet<String>, LeafOrInternal>: Sync,
BoxRaw<(String, BTreeSet<String>)>: Sync,
impl Unpin for SqlSchemaFileFactswhere
*const u8 is !null: Unpin,
Box<SqlSchemaFileFacts>: Unpin,
*const LeafNode<SqlQueryComplexity, SetValZST> is !null: Unpin,
Box<(SqlQueryComplexity, SetValZST)>: Unpin,
*const LeafNode<String, SetValZST> is !null: Unpin,
Box<(String, SetValZST)>: Unpin,
*const LeafNode<(String, String), SetValZST> is !null: Unpin,
Box<((String, String), SetValZST)>: Unpin,
*const LeafNode<usize, SetValZST> is !null: Unpin,
Box<(usize, SetValZST)>: Unpin,
*const LeafNode<String, BTreeSet<String>> is !null: Unpin,
Box<(String, BTreeSet<String>)>: Unpin,
impl UnsafeUnpin for SqlSchemaFileFactswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const SqlSchemaFileFacts is !null: UnsafeUnpin,
PhantomData<SqlSchemaFileFacts>: UnsafeUnpin,
PhantomData<SqlUnanalyzableStatement>: UnsafeUnpin,
PhantomData<SqlCreateTableMetadata>: UnsafeUnpin,
PhantomData<SqlTableSchemaEvent>: UnsafeUnpin,
PhantomData<SqlCreateIndexMetadata>: UnsafeUnpin,
PhantomData<SqlDropIndexMetadata>: UnsafeUnpin,
PhantomData<SqlForeignKeyMetadata>: UnsafeUnpin,
PhantomData<SqlAddColumnMetadata>: UnsafeUnpin,
PhantomData<SqlUnnamedConstraint>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<SqlComplexQuery>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
*const LeafNode<(String, String), SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<((String, String), SetValZST)>>: UnsafeUnpin,
*const LeafNode<usize, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(usize, SetValZST)>>: UnsafeUnpin,
PhantomData<Bindings>: UnsafeUnpin,
PhantomData<QueryFrame>: UnsafeUnpin,
PhantomData<SqlStatementKind>: UnsafeUnpin,
PhantomData<SqlSettingUse>: UnsafeUnpin,
PhantomData<SqlPolicyClauseUse>: UnsafeUnpin,
PhantomData<SqlFunctionCallFact>: UnsafeUnpin,
PhantomData<SqlNamedConstraint>: UnsafeUnpin,
PhantomData<SqlDeclaredIdentifier>: UnsafeUnpin,
impl UnwindSafe for SqlSchemaFileFactswhere
RawVecInner: UnwindSafe,
BoxRaw<SqlSchemaFileFacts>: UnwindSafe,
BTreeMap<SqlQueryComplexity, SetValZST>: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
BTreeMap<(String, String), SetValZST>: UnwindSafe,
BTreeMap<usize, SetValZST>: UnwindSafe,
BTreeMap<String, BTreeSet<String>>: UnwindSafe,
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