Trait assembly_fdb::io::read::DatabaseReader
source · pub trait DatabaseReader{
// 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§
sourcefn get_header(&mut self) -> FileResult<FDBHeader>
fn get_header(&mut self) -> FileResult<FDBHeader>
Read the schema header
sourcefn get_table_header_list(
&mut self,
header: FDBHeader,
) -> FileResult<Vec<FDBTableHeader>>
fn get_table_header_list( &mut self, header: FDBHeader, ) -> FileResult<Vec<FDBTableHeader>>
Read the table header
sourcefn get_table_def_header(&mut self, addr: u32) -> FileResult<FDBTableDefHeader>
fn get_table_def_header(&mut self, addr: u32) -> FileResult<FDBTableDefHeader>
Read the table def header
sourcefn get_column_header_list(
&mut self,
header: &FDBTableDefHeader,
) -> FileResult<Vec<FDBColumnHeader>>
fn get_column_header_list( &mut self, header: &FDBTableDefHeader, ) -> FileResult<Vec<FDBColumnHeader>>
Get the column header list
sourcefn get_table_data_header(&mut self, addr: u32) -> FileResult<FDBTableDataHeader>
fn get_table_data_header(&mut self, addr: u32) -> FileResult<FDBTableDataHeader>
Get the table data header
sourcefn get_bucket_header_list(
&mut self,
header: &FDBTableDataHeader,
) -> FileResult<Vec<FDBBucketHeader>>
fn get_bucket_header_list( &mut self, header: &FDBTableDataHeader, ) -> FileResult<Vec<FDBBucketHeader>>
Get the table bucket header list
sourcefn get_row_header_list_entry(
&mut self,
addr: u32,
) -> FileResult<FDBRowHeaderListEntry>
fn get_row_header_list_entry( &mut self, addr: u32, ) -> FileResult<FDBRowHeaderListEntry>
Get a row header list entry
sourcefn get_row_header(&mut self, addr: u32) -> FileResult<FDBRowHeader>
fn get_row_header(&mut self, addr: u32) -> FileResult<FDBRowHeader>
Get a row header
sourcefn get_field_data_list(
&mut self,
header: FDBRowHeader,
) -> FileResult<Vec<FDBFieldData>>
fn get_field_data_list( &mut self, header: FDBRowHeader, ) -> FileResult<Vec<FDBFieldData>>
Returns a vector of FDBFieldData
sourcefn get_row_header_addr_iterator<'a>(
&'a mut self,
addr: u32,
) -> FDBRowHeaderAddrIterator<'a, Self> ⓘ
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.