Skip to main content

EmbeddedSqlFileFacts

Struct EmbeddedSqlFileFacts 

Source
pub struct EmbeddedSqlFileFacts {
Show 25 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, /* 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: PendingRelativeScope

Relative 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: bool

When false, a later relative projection must not add member spans. Every configured rule for this profile excluded the file.

Implementations§

Source§

impl EmbeddedSqlFileFacts

Source

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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EmbeddedSqlFileFacts

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EmbeddedSqlFileFacts

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for EmbeddedSqlFileFacts

Source§

impl PartialEq for EmbeddedSqlFileFacts

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for EmbeddedSqlFileFacts

Auto Trait Implementations§

§

impl Forget for EmbeddedSqlFileFacts

§

impl Freeze for EmbeddedSqlFileFacts

§

impl Move for EmbeddedSqlFileFacts

§

impl RefUnwindSafe for EmbeddedSqlFileFacts

§

impl Send for EmbeddedSqlFileFacts
where 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 EmbeddedSqlFileFacts
where 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 EmbeddedSqlFileFacts
where *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 EmbeddedSqlFileFacts

§

impl UnwindSafe for EmbeddedSqlFileFacts

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, T> FromIn<'a, T> for T

Source§

fn from_in(t: T, _: &'a Allocator) -> T

Converts to this type from the input type within the given allocator.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<'a, T, U> IntoIn<'a, U> for T
where U: FromIn<'a, T>,

Source§

fn into_in(self, allocator: &'a Allocator) -> U

Converts this type into the (usually inferred) input type within the given allocator.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.