[−][src]Struct stellar_sql::storage::diskinterface::DiskInterface
Methods
impl DiskInterface
[src]
pub fn create_file_base(file_base_path: Option<&str>) -> Result<(), DiskError>
[src]
pub fn create_username(
username: &str,
file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]
username: &str,
file_base_path: Option<&str>
) -> Result<(), DiskError>
pub fn get_usernames(
file_base_path: Option<&str>
) -> Result<Vec<String>, DiskError>
[src]
file_base_path: Option<&str>
) -> Result<Vec<String>, DiskError>
pub fn remove_username(
username: &str,
file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]
username: &str,
file_base_path: Option<&str>
) -> Result<(), DiskError>
pub fn create_db(
username: &str,
db_name: &str,
file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
file_base_path: Option<&str>
) -> Result<(), DiskError>
pub fn get_dbs(
username: &str,
file_base_path: Option<&str>
) -> Result<Vec<String>, DiskError>
[src]
username: &str,
file_base_path: Option<&str>
) -> Result<Vec<String>, DiskError>
pub fn remove_db(
username: &str,
db_name: &str,
file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
file_base_path: Option<&str>
) -> Result<(), DiskError>
pub fn create_table(
username: &str,
db_name: &str,
table: &Table,
file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
table: &Table,
file_base_path: Option<&str>
) -> Result<(), DiskError>
pub fn get_tables(
username: &str,
db_name: &str,
file_base_path: Option<&str>
) -> Result<Vec<String>, DiskError>
[src]
username: &str,
db_name: &str,
file_base_path: Option<&str>
) -> Result<Vec<String>, DiskError>
pub fn load_tables_meta(
username: &str,
db_name: &str,
file_base_path: Option<&str>
) -> Result<Vec<TableMeta>, DiskError>
[src]
username: &str,
db_name: &str,
file_base_path: Option<&str>
) -> Result<Vec<TableMeta>, DiskError>
pub fn load_table_meta(
username: &str,
db_name: &str,
table_name: &str,
file_base_path: Option<&str>
) -> Result<TableMeta, DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
file_base_path: Option<&str>
) -> Result<TableMeta, DiskError>
pub fn drop_table(
username: &str,
db_name: &str,
table_name: &str,
file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
file_base_path: Option<&str>
) -> Result<(), DiskError>
pub fn append_rows(
username: &str,
db_name: &str,
table_name: &str,
rows: &Vec<Row>,
file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
rows: &Vec<Row>,
file_base_path: Option<&str>
) -> Result<(), DiskError>
pub fn fetch_rows(
username: &str,
db_name: &str,
table_name: &str,
row_range: &Vec<u32>,
file_base_path: Option<&str>
) -> Result<Vec<Row>, DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
row_range: &Vec<u32>,
file_base_path: Option<&str>
) -> Result<Vec<Row>, DiskError>
pub fn delete_rows(
username: &str,
db_name: &str,
table_name: &str,
row_range: &Vec<u32>,
file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
row_range: &Vec<u32>,
file_base_path: Option<&str>
) -> Result<(), DiskError>
pub fn modify_rows(
username: &str,
db_name: &str,
table_name: &str,
row_range: &Vec<u32>,
new_rows: &Vec<Row>,
file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
row_range: &Vec<u32>,
new_rows: &Vec<Row>,
file_base_path: Option<&str>
) -> Result<(), DiskError>
pub fn get_num_rows(
username: &str,
db_name: &str,
table_name: &str,
file_base_path: Option<&str>
) -> Result<u32, DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
file_base_path: Option<&str>
) -> Result<u32, DiskError>
pub fn storage_hierarchy_check(
base_path: &str,
username: Option<&str>,
db_name: Option<&str>,
table_name: Option<&str>
) -> Result<(), DiskError>
[src]
base_path: &str,
username: Option<&str>,
db_name: Option<&str>,
table_name: Option<&str>
) -> Result<(), DiskError>
pub fn get_datatype_size(datatype: &DataType) -> u32
[src]
pub fn build_index_from_table_bin(
username: &str,
db_name: &str,
table_name: &str,
file_base_path: Option<&str>
) -> Result<Index, DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
file_base_path: Option<&str>
) -> Result<Index, DiskError>
pub fn load_index(
username: &str,
db_name: &str,
table_name: &str,
file_base_path: Option<&str>
) -> Result<Index, DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
file_base_path: Option<&str>
) -> Result<Index, DiskError>
pub fn save_index(
index: &Index,
file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]
index: &Index,
file_base_path: Option<&str>
) -> Result<(), DiskError>
Trait Implementations
impl Clone for DiskInterface
[src]
fn clone(&self) -> DiskInterface
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for DiskInterface
[src]
Auto Trait Implementations
impl Send for DiskInterface
impl Sync for DiskInterface
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.