pub struct QueryOptions { /* private fields */ }Expand description
Options for preparing queries
Implementations§
Source§impl QueryOptions
impl QueryOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct default options with caching enabled and column information disabled
Sourcepub fn cache(self, enable: bool) -> Self
pub fn cache(self, enable: bool) -> Self
Add the prepared statement to the prepared statement cache
Sourcepub fn information(self, enable: bool) -> Self
pub fn information(self, enable: bool) -> Self
Store type information about columns and parameters
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnwindSafe for QueryOptions
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