pub struct Header {Show 14 fields
pub page_size: u32,
pub reserved_space: u8,
pub wal_mode: bool,
pub file_change_counter: u32,
pub header_page_count: Option<u32>,
pub first_freelist_trunk: u32,
pub freelist_page_count: u32,
pub schema_cookie: u32,
pub schema_format: u32,
pub text_encoding: TextEncoding,
pub user_version: i32,
pub application_id: i32,
pub largest_root_page: u32,
pub sqlite_version_number: u32,
}Fields§
§page_size: u32Bytes per page, 512 to 65536, always a power of two.
reserved_space: u8Unused bytes at the end of every page. Usually zero; extensions use it for per page trailers.
wal_mode: boolWhether the database uses a write-ahead log. On its own this says nothing about whether the main file is complete: see the note at the top of this file.
file_change_counter: u32§header_page_count: Option<u32>Page count as stated in the header, only present when the header
says it is current. Callers should prefer Reader::page_count.
first_freelist_trunk: u32§freelist_page_count: u32§schema_format: u321 to 4. Format 4 is what any SQLite since 2006 writes.
text_encoding: TextEncoding§user_version: i32§application_id: i32§largest_root_page: u32Non zero when the database is in auto vacuum mode, in which case pointer map pages are interleaved with the data.
sqlite_version_number: u32Implementations§
Trait Implementations§
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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