pub enum PreparedQuery<'sqlite> {
Empty {
find_spec: Rc<FindSpec>,
},
Constant {
select: ConstantProjector,
},
Bound {
statement: Statement<'sqlite>,
schema: Schema,
connection: &'sqlite Connection,
args: Vec<(String, Rc<Value>)>,
projector: Box<dyn Projector>,
},
}Variants§
Implementations§
Source§impl<'sqlite> PreparedQuery<'sqlite>
impl<'sqlite> PreparedQuery<'sqlite>
pub fn run<T>(&mut self, _inputs: T) -> Result<QueryOutput, MentatError>
Auto Trait Implementations§
impl<'sqlite> !Freeze for PreparedQuery<'sqlite>
impl<'sqlite> !RefUnwindSafe for PreparedQuery<'sqlite>
impl<'sqlite> !Send for PreparedQuery<'sqlite>
impl<'sqlite> !Sync for PreparedQuery<'sqlite>
impl<'sqlite> !UnwindSafe for PreparedQuery<'sqlite>
impl<'sqlite> Unpin for PreparedQuery<'sqlite>
impl<'sqlite> UnsafeUnpin for PreparedQuery<'sqlite>
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