pub struct EmbeddedSqlFileFacts {Show 26 fields
pub lock_helper_summaries: FxHashMap<String, Summary>,
pub imported_lock_helpers: Vec<Invocation>,
pub path: PathBuf,
pub executor_bindings: Vec<String>,
pub calls: Vec<EmbeddedSqlCall>,
pub undeclared_executor_types: Vec<UndeclaredExecutorType>,
pub call_spans: Vec<(u32, u32)>,
pub exported_helpers: FxHashMap<String, HelperSummary>,
pub exported_programs: FxHashMap<String, Arc<Program>>,
pub exported_constants: FxHashMap<String, ExportedConstant>,
pub pending_imported: Vec<PendingImportedSql>,
pub imported_call_lines: FxHashMap<(u32, u32), Vec<u32>>,
pub source_comment_spans: Vec<(u32, u32)>,
pub fragments: Vec<EmbeddedSqlFragment>,
pub fragment_sites: Vec<Option<u32>>,
pub fragment_variants: Vec<Vec<EmbeddedSqlVariant>>,
pub call_fragments: FxHashMap<(u32, u32), Vec<CallSqlFragment>>,
pub runtime_loop_appends: Vec<CallSqlFragment>,
pub param_append_fragments: Vec<CallSqlFragment>,
pub matched_factory_names: Vec<String>,
pub matched_type_names: Vec<String>,
pub pending_relative: PendingRelativeScope,
pub unproven_member_queries: Vec<UnprovenMemberQuery>,
pub postgres_rule_ids: Vec<String>,
pub record_unproven_spans: bool,
pub ratchet_unproven: Option<Vec<UnprovenMemberQuery>>,
/* private fields */
}Expand description
Embedded-SQL facts for one source file.
Fields§
§lock_helper_summaries: FxHashMap<String, Summary>§imported_lock_helpers: Vec<Invocation>§path: PathBuf§executor_bindings: Vec<String>§calls: Vec<EmbeddedSqlCall>§undeclared_executor_types: Vec<UndeclaredExecutorType>Calls through imported types absent from executorTypeNames; never executed.
call_spans: Vec<(u32, u32)>Private call identities, parallel to calls; public summaries stay unchanged.
exported_helpers: FxHashMap<String, HelperSummary>Summaries of this file’s helpers, collected during its single AST pass.
exported_programs: FxHashMap<String, Arc<Program>>Lowered bodies of the same helpers, run per call site by the projection.
exported_constants: FxHashMap<String, ExportedConstant>§pending_imported: Vec<PendingImportedSql>Executor SQL that is complete once imported helpers resolve.
imported_call_lines: FxHashMap<(u32, u32), Vec<u32>>Caller lines of the imported-helper calls completed into a call, by span.
source_comment_spans: Vec<(u32, u32)>Real TypeScript comments from the same parse, excluding SQL literal text.
fragments: Vec<EmbeddedSqlFragment>§fragment_sites: Vec<Option<u32>>Private complete alternatives, parallel to the legacy fragment records.
fragment_variants: Vec<Vec<EmbeddedSqlVariant>>§call_fragments: FxHashMap<(u32, u32), Vec<CallSqlFragment>>Fragments attached to unanalyzable executor calls, keyed by call span.
runtime_loop_appends: Vec<CallSqlFragment>Appended SQL fragments on builder parameters (e.g. q: SQLStatement).
Fragments appended to an outer SQL builder from a runtime for-of loop.
param_append_fragments: Vec<CallSqlFragment>§matched_factory_names: Vec<String>Configured executor_factory_names this file imports from the configured module.
matched_type_names: Vec<String>Configured executor_type_names this file imports from the configured module.
pending_relative: PendingRelativeScopeRelative imports of configured names, projected after the request resolver exists.
unproven_member_queries: Vec<UnprovenMemberQuery>SQL-looking member .query calls with no executor proof, by source span.
postgres_rule_ids: Vec<String>PostgreSQL rules that share this options profile. Empty means the extract has no check rule, so suppression does not apply.
record_unproven_spans: boolWhen false, a later relative projection must not add member spans. Every configured rule for this profile excluded the file.
ratchet_unproven: Option<Vec<UnprovenMemberQuery>>Implementations§
Source§impl EmbeddedSqlFileFacts
impl EmbeddedSqlFileFacts
Sourcepub fn apply_imported_sql(
&mut self,
span: (u32, u32),
completed: EmbeddedSqlCall,
lines: Vec<u32>,
)
pub fn apply_imported_sql( &mut self, span: (u32, u32), completed: EmbeddedSqlCall, lines: Vec<u32>, )
Replace the unrecovered call at span with its completed form. Only a
call still left Dynamic by the walk is replaced.
Trait Implementations§
Source§impl Clone for EmbeddedSqlFileFacts
impl Clone for EmbeddedSqlFileFacts
Source§impl Debug for EmbeddedSqlFileFacts
impl Debug for EmbeddedSqlFileFacts
Source§impl Default for EmbeddedSqlFileFacts
impl Default for EmbeddedSqlFileFacts
impl Eq for EmbeddedSqlFileFacts
Source§impl PartialEq for EmbeddedSqlFileFacts
impl PartialEq for EmbeddedSqlFileFacts
impl StructuralPartialEq for EmbeddedSqlFileFacts
Auto Trait Implementations§
impl Forget for EmbeddedSqlFileFacts
impl Freeze for EmbeddedSqlFileFactswhere
*const u8 is !null: Freeze,
PhantomData<(String, Summary)>: Freeze,
PhantomData<Invocation>: Freeze,
PhantomData<(u32, u32)>: Freeze,
PhantomData<(u32, ())>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<EmbeddedSqlCall>: Freeze,
PhantomData<UndeclaredExecutorType>: Freeze,
PhantomData<(String, HelperSummary)>: Freeze,
PhantomData<(String, Arc<Program>)>: Freeze,
PhantomData<(String, ExportedConstant)>: Freeze,
PhantomData<PendingImportedSql>: Freeze,
PhantomData<((u32, u32), Vec<u32>)>: Freeze,
PhantomData<EmbeddedSqlFragment>: Freeze,
PhantomData<Option<u32>>: Freeze,
PhantomData<Vec<EmbeddedSqlVariant>>: Freeze,
PhantomData<((u32, u32), Vec<CallSqlFragment>)>: Freeze,
PhantomData<CallSqlFragment>: Freeze,
PhantomData<RelativeScopedCandidate>: Freeze,
PhantomData<PendingRelativeSpan>: Freeze,
PhantomData<PendingRelativeCall>: Freeze,
*const LeafNode<u32, UnprovenMemberQuery> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(u32, UnprovenMemberQuery)>>: Freeze,
PhantomData<u32>: Freeze,
*const LeafNode<u32, (u32, u32)> is !null: Freeze,
PhantomData<Box<(u32, (u32, u32))>>: Freeze,
PhantomData<UnprovenMemberQuery>: Freeze,
impl Move for EmbeddedSqlFileFacts
impl RefUnwindSafe for EmbeddedSqlFileFacts
impl Send for EmbeddedSqlFileFactswhere
RawTable<(String, Summary)>: Send,
RawVecInner: Send,
Arc<Vec<(usize, usize, u32)>>: Send,
BoxRaw<(String, u32)>: Send,
RawTable<(u32, u32)>: Send,
RawTable<(u32, ())>: Send,
RawTable<(String, HelperSummary)>: Send,
RawTable<(String, Arc<Program>)>: Send,
RawTable<(String, ExportedConstant)>: Send,
RawTable<(usize, u32)>: Send,
RawTable<((u32, u32), Vec<u32>)>: Send,
RawTable<((u32, u32), Vec<CallSqlFragment>)>: Send,
BoxRaw<CallSqlFragment>: Send,
NodeRef<Owned, u32, UnprovenMemberQuery, LeafOrInternal>: Send,
BoxRaw<(u32, UnprovenMemberQuery)>: Send,
NodeRef<Owned, u32, (u32, u32), LeafOrInternal>: Send,
BoxRaw<(u32, (u32, u32))>: Send,
impl Sync for EmbeddedSqlFileFactswhere
RawTable<(String, Summary)>: Sync,
RawVecInner: Sync,
Arc<Vec<(usize, usize, u32)>>: Sync,
BoxRaw<(String, u32)>: Sync,
RawTable<(u32, u32)>: Sync,
RawTable<(u32, ())>: Sync,
RawTable<(String, HelperSummary)>: Sync,
RawTable<(String, Arc<Program>)>: Sync,
RawTable<(String, ExportedConstant)>: Sync,
RawTable<(usize, u32)>: Sync,
RawTable<((u32, u32), Vec<u32>)>: Sync,
RawTable<((u32, u32), Vec<CallSqlFragment>)>: Sync,
BoxRaw<CallSqlFragment>: Sync,
NodeRef<Owned, u32, UnprovenMemberQuery, LeafOrInternal>: Sync,
BoxRaw<(u32, UnprovenMemberQuery)>: Sync,
NodeRef<Owned, u32, (u32, u32), LeafOrInternal>: Sync,
BoxRaw<(u32, (u32, u32))>: Sync,
impl Unpin for EmbeddedSqlFileFactswhere
*const u8 is !null: Unpin,
Arc<Vec<(usize, usize, u32)>>: Unpin,
Box<(String, u32)>: Unpin,
Arc<Program>: Unpin,
Box<CallSqlFragment>: Unpin,
*const LeafNode<u32, UnprovenMemberQuery> is !null: Unpin,
Box<(u32, UnprovenMemberQuery)>: Unpin,
*const LeafNode<u32, (u32, u32)> is !null: Unpin,
Box<(u32, (u32, u32))>: Unpin,
impl UnsafeUnpin for EmbeddedSqlFileFactswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, Summary)>: UnsafeUnpin,
PhantomData<Invocation>: UnsafeUnpin,
PhantomData<(u32, u32)>: UnsafeUnpin,
PhantomData<(u32, ())>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<EmbeddedSqlCall>: UnsafeUnpin,
PhantomData<UndeclaredExecutorType>: UnsafeUnpin,
PhantomData<(String, HelperSummary)>: UnsafeUnpin,
PhantomData<(String, Arc<Program>)>: UnsafeUnpin,
PhantomData<(String, ExportedConstant)>: UnsafeUnpin,
PhantomData<PendingImportedSql>: UnsafeUnpin,
PhantomData<((u32, u32), Vec<u32>)>: UnsafeUnpin,
PhantomData<EmbeddedSqlFragment>: UnsafeUnpin,
PhantomData<Option<u32>>: UnsafeUnpin,
PhantomData<Vec<EmbeddedSqlVariant>>: UnsafeUnpin,
PhantomData<((u32, u32), Vec<CallSqlFragment>)>: UnsafeUnpin,
PhantomData<CallSqlFragment>: UnsafeUnpin,
PhantomData<RelativeScopedCandidate>: UnsafeUnpin,
PhantomData<PendingRelativeSpan>: UnsafeUnpin,
PhantomData<PendingRelativeCall>: UnsafeUnpin,
*const LeafNode<u32, UnprovenMemberQuery> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(u32, UnprovenMemberQuery)>>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
*const LeafNode<u32, (u32, u32)> is !null: UnsafeUnpin,
PhantomData<Box<(u32, (u32, u32))>>: UnsafeUnpin,
PhantomData<UnprovenMemberQuery>: UnsafeUnpin,
impl UnwindSafe for EmbeddedSqlFileFactswhere
HashMap<String, Summary, FxBuildHasher>: UnwindSafe,
RawVecInner: UnwindSafe,
Arc<Vec<(usize, usize, u32)>>: UnwindSafe,
BoxRaw<(String, u32)>: UnwindSafe,
HashMap<u32, u32, FxBuildHasher>: UnwindSafe,
NonNull<u8>: UnwindSafe,
HashMap<String, HelperSummary, FxBuildHasher>: UnwindSafe,
HashMap<String, Arc<Program>, FxBuildHasher>: UnwindSafe,
HashMap<String, ExportedConstant, FxBuildHasher>: UnwindSafe,
HashMap<usize, u32, FxBuildHasher>: UnwindSafe,
HashMap<(u32, u32), Vec<u32>, FxBuildHasher>: UnwindSafe,
HashMap<(u32, u32), Vec<CallSqlFragment>, FxBuildHasher>: UnwindSafe,
BoxRaw<CallSqlFragment>: UnwindSafe,
BTreeMap<u32, UnprovenMemberQuery>: UnwindSafe,
BTreeMap<u32, (u32, u32)>: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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