Trait assembly_fdb::io::read::DatabaseReader

source ·
pub trait DatabaseReader
where Self: Seek + Read,
{ // Provided methods fn get_header(&mut self) -> FileResult<FDBHeader> { ... } fn get_table_header_list( &mut self, header: FDBHeader, ) -> FileResult<Vec<FDBTableHeader>> { ... } fn get_table_def_header( &mut self, addr: u32, ) -> FileResult<FDBTableDefHeader> { ... } fn get_i64(&mut self, addr: u32) -> Result<i64> { ... } fn get_column_header_list( &mut self, header: &FDBTableDefHeader, ) -> FileResult<Vec<FDBColumnHeader>> { ... } fn get_table_data_header( &mut self, addr: u32, ) -> FileResult<FDBTableDataHeader> { ... } fn get_bucket_header_list( &mut self, header: &FDBTableDataHeader, ) -> FileResult<Vec<FDBBucketHeader>> { ... } fn get_row_header_list_entry( &mut self, addr: u32, ) -> FileResult<FDBRowHeaderListEntry> { ... } fn get_row_header(&mut self, addr: u32) -> FileResult<FDBRowHeader> { ... } fn get_field_data_list( &mut self, header: FDBRowHeader, ) -> FileResult<Vec<FDBFieldData>> { ... } fn get_row_header_addr_iterator<'a>( &'a mut self, addr: u32, ) -> FDBRowHeaderAddrIterator<'a, Self> { ... } }
Expand description

Extension to Seek + Read to read an FDB file

Provided Methods§

source

fn get_header(&mut self) -> FileResult<FDBHeader>

Read the schema header

source

fn get_table_header_list( &mut self, header: FDBHeader, ) -> FileResult<Vec<FDBTableHeader>>

Read the table header

source

fn get_table_def_header(&mut self, addr: u32) -> FileResult<FDBTableDefHeader>

Read the table def header

source

fn get_i64(&mut self, addr: u32) -> Result<i64>

Get a 64bit integer

source

fn get_column_header_list( &mut self, header: &FDBTableDefHeader, ) -> FileResult<Vec<FDBColumnHeader>>

Get the column header list

source

fn get_table_data_header(&mut self, addr: u32) -> FileResult<FDBTableDataHeader>

Get the table data header

source

fn get_bucket_header_list( &mut self, header: &FDBTableDataHeader, ) -> FileResult<Vec<FDBBucketHeader>>

Get the table bucket header list

source

fn get_row_header_list_entry( &mut self, addr: u32, ) -> FileResult<FDBRowHeaderListEntry>

Get a row header list entry

source

fn get_row_header(&mut self, addr: u32) -> FileResult<FDBRowHeader>

Get a row header

source

fn get_field_data_list( &mut self, header: FDBRowHeader, ) -> FileResult<Vec<FDBFieldData>>

Returns a vector of FDBFieldData

source

fn get_row_header_addr_iterator<'a>( &'a mut self, addr: u32, ) -> FDBRowHeaderAddrIterator<'a, Self>

Returns an iterator over FDBRowHeader offsets

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> DatabaseReader for T
where T: Seek + Read + ?Sized,