pub struct QueryExecutor<'a, T>where
T: Interface,{ /* private fields */ }
Expand description
Query executor
Implementations§
Source§impl<'a, T> QueryExecutor<'a, T>where
T: Interface,
impl<'a, T> QueryExecutor<'a, T>where
T: Interface,
Sourcepub fn bind_val(self, value: impl ChValue) -> Self
pub fn bind_val(self, value: impl ChValue) -> Self
Binds the raw query with query parameters
Query parameters are defined by ??
Sourcepub fn bind_str(self, value: &str) -> Self
pub fn bind_str(self, value: &str) -> Self
Binds the query with a raw parameter which is not formatted
For instance, strings are not enclosed by '
.
Query parameters are defined by ??
Sourcepub fn bind_val_list(self, values: Vec<Value>) -> Self
pub fn bind_val_list(self, values: Vec<Value>) -> Self
Binds the raw query with query parameters
Sourcepub fn bind_str_list(self, values: Vec<&str>) -> Self
pub fn bind_str_list(self, values: Vec<&str>) -> Self
Binds the query with strings
Sourcepub async fn exec(self) -> Result<QueryResponse, Error>
pub async fn exec(self) -> Result<QueryResponse, Error>
Executes the query
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for QueryExecutor<'a, T>
impl<'a, T> RefUnwindSafe for QueryExecutor<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for QueryExecutor<'a, T>
impl<'a, T> Sync for QueryExecutor<'a, T>
impl<'a, T> Unpin for QueryExecutor<'a, T>
impl<'a, T> UnwindSafe for QueryExecutor<'a, T>where
T: RefUnwindSafe,
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