pub struct SessionDeleteQuery<'a, C: CanisterKind, E: EntityKind<Canister = C>> { /* private fields */ }Expand description
SessionDeleteQuery
Session-bound delete query wrapper.
This type owns intent construction and execution routing only.
All result projection and cardinality handling lives on Response<E>.
Implementations§
Source§impl<'a, C: CanisterKind, E: EntityKind<Canister = C>> SessionDeleteQuery<'a, C, E>
impl<'a, C: CanisterKind, E: EntityKind<Canister = C>> SessionDeleteQuery<'a, C, E>
pub const fn query(&self) -> &Query<E>
pub fn by_key(self, key: E::PrimaryKey) -> Self
pub fn many<I>(self, keys: I) -> Selfwhere
I: IntoIterator<Item = E::PrimaryKey>,
pub fn filter(self, predicate: Predicate) -> Self
pub fn filter_expr(self, expr: FilterExpr) -> Result<Self, QueryError>
pub fn sort_expr(self, expr: SortExpr) -> Result<Self, QueryError>
pub fn order_by(self, field: impl AsRef<str>) -> Self
pub fn order_by_desc(self, field: impl AsRef<str>) -> Self
pub fn limit(self, limit: u32) -> Self
pub fn explain(&self) -> Result<ExplainPlan, QueryError>
pub fn plan(&self) -> Result<ExecutablePlan<E>, QueryError>
Sourcepub fn execute(&self) -> Result<Response<E>, QueryError>
pub fn execute(&self) -> Result<Response<E>, QueryError>
Execute this delete using the session’s policy settings.
All result inspection and projection is performed on Response<E>.
Sourcepub fn is_empty(&self) -> Result<bool, QueryError>
pub fn is_empty(&self) -> Result<bool, QueryError>
Execute and return whether any rows were affected.
Sourcepub fn count(&self) -> Result<u32, QueryError>
pub fn count(&self) -> Result<u32, QueryError>
Execute and return the number of affected rows.
Sourcepub fn require_one(&self) -> Result<(), QueryError>
pub fn require_one(&self) -> Result<(), QueryError>
Execute and require exactly one affected row.
Sourcepub fn require_some(&self) -> Result<(), QueryError>
pub fn require_some(&self) -> Result<(), QueryError>
Execute and require at least one affected row.
Source§impl<C: CanisterKind, E: EntityKind<Canister = C>> SessionDeleteQuery<'_, C, E>where
E::PrimaryKey: UnitKey,
impl<C: CanisterKind, E: EntityKind<Canister = C>> SessionDeleteQuery<'_, C, E>where
E::PrimaryKey: UnitKey,
Auto Trait Implementations§
impl<'a, C, E> Freeze for SessionDeleteQuery<'a, C, E>
impl<'a, C, E> !RefUnwindSafe for SessionDeleteQuery<'a, C, E>
impl<'a, C, E> !Send for SessionDeleteQuery<'a, C, E>
impl<'a, C, E> !Sync for SessionDeleteQuery<'a, C, E>
impl<'a, C, E> Unpin for SessionDeleteQuery<'a, C, E>where
E: Unpin,
impl<'a, C, E> !UnwindSafe for SessionDeleteQuery<'a, C, E>
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