pub struct SchemaCookie(/* private fields */);
Expand description
§Schema cookie (4 Bytes)
The schema cookie is a 4-byte big-endian integer at offset 40 that is incremented whenever the database schema changes. A prepared statement is compiled against a specific version of the database schema. When the database schema changes, the statement must be reprepared. When a prepared statement runs, it first checks the schema cookie to ensure the value is the same as when the statement was prepared and if the schema cookie has changed, the statement either automatically reprepares and reruns or it aborts with an SQLITE_SCHEMA error.
Trait Implementations§
Source§impl Debug for SchemaCookie
impl Debug for SchemaCookie
Source§impl Default for SchemaCookie
impl Default for SchemaCookie
Source§fn default() -> SchemaCookie
fn default() -> SchemaCookie
Returns the “default value” for a type. Read more
Source§impl Deref for SchemaCookie
impl Deref for SchemaCookie
Auto Trait Implementations§
impl Freeze for SchemaCookie
impl RefUnwindSafe for SchemaCookie
impl Send for SchemaCookie
impl Sync for SchemaCookie
impl Unpin for SchemaCookie
impl UnwindSafe for SchemaCookie
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