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§
Source§impl Debug for FileFormatVersionNumbers
impl Debug for FileFormatVersionNumbers
Source§impl Default for FileFormatVersionNumbers
impl Default for FileFormatVersionNumbers
Source§fn default() -> FileFormatVersionNumbers
fn default() -> FileFormatVersionNumbers
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileFormatVersionNumbers
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