pub struct QuerySignature { /* private fields */ }Expand description
Unique identifier for a query based on its structure
Implementations§
Source§impl QuerySignature
impl QuerySignature
Sourcepub fn from_sql(sql: &str) -> Self
pub fn from_sql(sql: &str) -> Self
Create a signature from SQL text (legacy string-based approach)
Sourcepub fn from_ast(stmt: &Statement) -> Self
pub fn from_ast(stmt: &Statement) -> Self
Create a signature from parsed AST, ignoring literal values This allows queries with different literals but identical structure to share cached plans
Sourcepub fn from_arena_select(select: &ArenaSelectStmt<'_>) -> Self
pub fn from_arena_select(select: &ArenaSelectStmt<'_>) -> Self
Create a signature from arena-allocated SelectStmt, ignoring literal values
Trait Implementations§
Source§impl Clone for QuerySignature
impl Clone for QuerySignature
Source§fn clone(&self) -> QuerySignature
fn clone(&self) -> QuerySignature
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QuerySignature
impl Debug for QuerySignature
Source§impl Hash for QuerySignature
impl Hash for QuerySignature
Source§impl PartialEq for QuerySignature
impl PartialEq for QuerySignature
impl Eq for QuerySignature
impl StructuralPartialEq for QuerySignature
Auto Trait Implementations§
impl Freeze for QuerySignature
impl RefUnwindSafe for QuerySignature
impl Send for QuerySignature
impl Sync for QuerySignature
impl Unpin for QuerySignature
impl UnwindSafe for QuerySignature
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<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
Compare self to
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>
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