Struct sqlite_rs::header::SchemaCookie
source · 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.
Methods from Deref<Target = u32>§
pub const MIN: u32 = 0u32
pub const MAX: u32 = 4_294_967_295u32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl Debug for SchemaCookie
impl Debug for SchemaCookie
source§impl Deref for SchemaCookie
impl Deref for SchemaCookie
Auto Trait Implementations§
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