pub struct ByteTreeStore { /* private fields */ }Implementations§
Source§impl ByteTreeStore
impl ByteTreeStore
pub const PAGE_SIZE: usize = PAGE_SIZE
pub const INVALID_PAGE_ID: PageId = INVALID_PAGE_ID
pub const DB_HEADER_PAGE_ID: PageId = DB_HEADER_PAGE_ID
pub const RESERVED_METADATA_PAGE_ID: PageId = STORAGE_METADATA_PAGE_ID
pub fn open_path<P: AsRef<Path>>(path: P, cache_capacity: usize) -> Result<Self>
pub fn new_in_memory(cache_capacity: usize) -> Result<Self>
pub fn new(storage: Pager) -> Self
pub fn read_reserved_blob(&self, page_id: PageId) -> Result<Option<Vec<u8>>>
pub fn write_reserved_blob(&self, page_id: PageId, bytes: &[u8]) -> Result<()>
pub fn flush(&self) -> Result<()>
pub fn begin_transaction(&self) -> Result<()>
pub fn commit_transaction(&self) -> Result<()>
pub fn rollback_transaction(&self) -> Result<()>
pub fn transaction_active(&self) -> Result<bool>
pub fn begin_read(&self) -> Result<()>
pub fn end_read(&self) -> Result<()>
pub fn journal_mode(&self) -> Result<JournalMode>
pub fn set_journal_mode(&self, journal_mode: JournalMode) -> Result<()>
pub fn checkpoint_wal(&self) -> Result<()>
pub fn file_len(&self) -> Result<u64>
pub fn allocated_page_count(&self) -> Result<usize>
pub fn free_page_ids(&self) -> Result<Vec<PageId>>
pub fn fragmented_free_page_count(&self) -> Result<usize>
pub fn trailing_free_page_count(&self) -> Result<usize>
pub fn validate_storage(&self) -> Result<PagerIntegrityReport>
pub fn create_tree(&self) -> Result<PageId>
pub fn open_tree(&self, root_page_id: PageId) -> Result<ByteTree>
pub fn delete_tree(&self, root_page_id: PageId) -> Result<()>
pub fn validate_tree(&self, root_page_id: PageId) -> Result<bool>
pub fn validate_tree_overflow(&self, root_page_id: PageId) -> Result<()>
pub fn reset_tree(&self, root_page_id: PageId) -> Result<()>
pub fn collect_page_ids(&self, root_page_id: PageId) -> Result<Vec<PageId>>
pub fn collect_space_stats( &self, root_page_id: PageId, ) -> Result<TreeSpaceStats>
Trait Implementations§
Source§impl Clone for ByteTreeStore
impl Clone for ByteTreeStore
Source§fn clone(&self) -> ByteTreeStore
fn clone(&self) -> ByteTreeStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ByteTreeStore
impl RefUnwindSafe for ByteTreeStore
impl Send for ByteTreeStore
impl Sync for ByteTreeStore
impl Unpin for ByteTreeStore
impl UnsafeUnpin for ByteTreeStore
impl UnwindSafe for ByteTreeStore
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