pub struct EseFile { /* private fields */ }Expand description
A minimally-parsed ESE database file — reads the header + gives you random-access page reads. Does not walk B-trees or enumerate tables (v0.2 roadmap).
Implementations§
Source§impl EseFile
impl EseFile
Sourcepub fn open(path: impl AsRef<Path>) -> Result<Self, Error>
pub fn open(path: impl AsRef<Path>) -> Result<Self, Error>
Open + validate an ESE database file. Reads only the 668-byte database header at open-time; page reads happen on demand.
Sourcepub fn parse_header(hdr: &[u8]) -> Result<HeaderFields, Error>
pub fn parse_header(hdr: &[u8]) -> Result<HeaderFields, Error>
Parse the 668-byte header without any I/O. Useful for tests or when the caller has already read the bytes over the wire.
pub fn format_version(&self) -> u32
pub fn format_revision(&self) -> u32
pub fn page_size(&self) -> u32
pub fn file_type(&self) -> u32
pub fn previous_full_backup_log_gen(&self) -> u32
pub fn previous_incremental_backup_log_gen(&self) -> u32
pub fn current_full_backup_log_gen(&self) -> u32
Auto Trait Implementations§
impl Freeze for EseFile
impl RefUnwindSafe for EseFile
impl Send for EseFile
impl Sync for EseFile
impl Unpin for EseFile
impl UnsafeUnpin for EseFile
impl UnwindSafe for EseFile
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