pub struct PreparedQuery { /* private fields */ }Expand description
A prepared (planned) query ready for execution.
Implementations§
Source§impl PreparedQuery
impl PreparedQuery
Sourcepub fn execute<S: ProjectionStore>(&self, store: &mut S) -> Result<QueryResult>
pub fn execute<S: ProjectionStore>(&self, store: &mut S) -> Result<QueryResult>
Executes this prepared query against the current store state.
Sourcepub fn execute_at<S: ProjectionStore>(
&self,
store: &mut S,
position: Offset,
) -> Result<QueryResult>
pub fn execute_at<S: ProjectionStore>( &self, store: &mut S, position: Offset, ) -> Result<QueryResult>
Executes this prepared query at a specific log position.
Sourcepub fn columns(&self) -> &[ColumnName]
pub fn columns(&self) -> &[ColumnName]
Returns the column names this query will return.
Sourcepub fn table_name(&self) -> &str
pub fn table_name(&self) -> &str
Returns the table name being queried.
Trait Implementations§
Source§impl Clone for PreparedQuery
impl Clone for PreparedQuery
Source§fn clone(&self) -> PreparedQuery
fn clone(&self) -> PreparedQuery
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 PreparedQuery
impl RefUnwindSafe for PreparedQuery
impl Send for PreparedQuery
impl Sync for PreparedQuery
impl Unpin for PreparedQuery
impl UnwindSafe for PreparedQuery
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