pub struct FindPkByIndex {
pub table: TableId,
pub index: IndexId,
pub filter: Expr,
}Expand description
Looks up primary keys through a secondary index.
The driver queries the specified secondary index using filter and returns
the matching primary key values. The query engine then uses those keys
in a subsequent GetByKey operation to fetch full records.
§Examples
ⓘ
use toasty_core::driver::operation::{FindPkByIndex, Operation};
let op = FindPkByIndex {
table: table_id,
index: index_id,
filter: filter_expr,
};
let operation: Operation = op.into();Fields§
§table: TableIdThe table that owns the index.
index: IndexIdThe secondary index to query.
filter: ExprFilter expression applied against the index columns.
Trait Implementations§
Source§impl Clone for FindPkByIndex
impl Clone for FindPkByIndex
Source§fn clone(&self) -> FindPkByIndex
fn clone(&self) -> FindPkByIndex
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 FindPkByIndex
impl Debug for FindPkByIndex
Source§impl From<FindPkByIndex> for Operation
impl From<FindPkByIndex> for Operation
Source§fn from(value: FindPkByIndex) -> Self
fn from(value: FindPkByIndex) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FindPkByIndex
impl RefUnwindSafe for FindPkByIndex
impl Send for FindPkByIndex
impl Sync for FindPkByIndex
impl Unpin for FindPkByIndex
impl UnwindSafe for FindPkByIndex
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