Struct sqlite_rs::header::FileFormatVersionNumbers
source · pub struct FileFormatVersionNumbers { /* private fields */ }Expand description
File format version numbers (2 Bytes)
The file format write version and file format read version at offsets 18 and 19 are intended to allow for enhancements of the file format in future versions of SQLite. In current versions of SQLite, both of these values are:
1for rollback journalling modes; and2for WAL journalling mode.
If a version of SQLite coded to the current file format specification encounters a database file where the read version is 1 or 2 but the write version is greater than 2, then the database file must be treated as read-only. If a database file with a read version greater than 2 is encountered, then that database cannot be read or written.
Implementations§
source§impl FileFormatVersionNumbers
impl FileFormatVersionNumbers
pub fn write_version(&self) -> &FileFormatWriteVersion
pub fn read_version(&self) -> &FileFormatReadVersion
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FileFormatVersionNumbers
impl Send for FileFormatVersionNumbers
impl Sync for FileFormatVersionNumbers
impl Unpin for FileFormatVersionNumbers
impl UnwindSafe for FileFormatVersionNumbers
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