pub struct SqlParsedStatement { /* private fields */ }Expand description
SqlParsedStatement
Opaque parsed SQL statement envelope with stable route metadata. This allows callers to parse once and reuse parsed authority across route classification and typed dispatch lowering.
Implementations§
Source§impl SqlParsedStatement
impl SqlParsedStatement
Sourcepub const fn route(&self) -> &SqlStatementRoute
pub const fn route(&self) -> &SqlStatementRoute
Borrow canonical route metadata for this parsed statement.
Sourcepub const fn is_delete_like_query_surface(&self) -> bool
pub const fn is_delete_like_query_surface(&self) -> bool
Return whether this parsed statement is one delete-like query-surface shape.
The generated canister query lane is intentionally narrower than the
typed session SQL surface. It must reject both executable DELETE and
EXPLAIN DELETE so query-only canister exports do not retain delete
execution or delete-specific explain handling.
Sourcepub fn lower_query_lane_for_entity(
&self,
expected_entity: &'static str,
primary_key_field: &str,
) -> Result<LoweredSqlCommand, QueryError>
pub fn lower_query_lane_for_entity( &self, expected_entity: &'static str, primary_key_field: &str, ) -> Result<LoweredSqlCommand, QueryError>
Lower this parsed statement into one shared query-lane shape.
Trait Implementations§
Source§impl Clone for SqlParsedStatement
impl Clone for SqlParsedStatement
Source§fn clone(&self) -> SqlParsedStatement
fn clone(&self) -> SqlParsedStatement
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 moreAuto Trait Implementations§
impl Freeze for SqlParsedStatement
impl RefUnwindSafe for SqlParsedStatement
impl Send for SqlParsedStatement
impl Sync for SqlParsedStatement
impl Unpin for SqlParsedStatement
impl UnsafeUnpin for SqlParsedStatement
impl UnwindSafe for SqlParsedStatement
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