pub struct Prepare(/* private fields */);Expand description
A collection of flags use to prepare a statement.
Implementations§
Source§impl Prepare
impl Prepare
Sourcepub const PERSISTENT: Self
pub const PERSISTENT: Self
The PERSISTENT flag is a hint to the query planner that the prepared
statement will be retained for a long time and probably reused many
times. Without this flag, Connection::prepare assume that the
prepared statement will be used just once or at most a few times and
then destroyed relatively soon.
The current implementation acts on this hint by avoiding the use of lookaside memory so as not to deplete the limited store of lookaside memory. Future versions of SQLite may act on this hint differently.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Prepare
impl RefUnwindSafe for Prepare
impl Send for Prepare
impl Sync for Prepare
impl Unpin for Prepare
impl UnwindSafe for Prepare
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