pub struct QueryBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> QueryBuilder<'a>
impl<'a> QueryBuilder<'a>
pub fn new<T>(store: &mut Store, query: T) -> QueryBuilder<'_>
pub fn bind_value<T>(&mut self, var: &str, value: T) -> &mut Selfwhere
T: Into<TypedValue>,
pub fn bind_ref_from_kw( &mut self, var: &str, value: Keyword, ) -> Result<&mut Self>
pub fn bind_ref<T>(&mut self, var: &str, value: T) -> &mut Self
pub fn bind_long(&mut self, var: &str, value: i64) -> &mut Self
pub fn bind_instant(&mut self, var: &str, value: i64) -> &mut Self
pub fn bind_date_time(&mut self, var: &str, value: DateTime<Utc>) -> &mut Self
pub fn bind_type(&mut self, var: &str, value_type: ValueType) -> &mut Self
pub fn execute(&mut self) -> Result<QueryOutput>
pub fn execute_scalar(&mut self) -> Result<Option<Binding>>
pub fn execute_coll(&mut self) -> Result<Vec<Binding>>
pub fn execute_tuple(&mut self) -> Result<Option<Vec<Binding>>>
pub fn execute_rel(&mut self) -> Result<RelResult<Binding>>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for QueryBuilder<'a>
impl<'a> !Send for QueryBuilder<'a>
impl<'a> !Sync for QueryBuilder<'a>
impl<'a> !UnwindSafe for QueryBuilder<'a>
impl<'a> Freeze for QueryBuilder<'a>
impl<'a> Unpin for QueryBuilder<'a>
impl<'a> UnsafeUnpin for QueryBuilder<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more