[][src]Struct stellar_sql::storage::diskinterface::DiskInterface

pub struct 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]

pub fn get_usernames(
    file_base_path: Option<&str>
) -> Result<Vec<String>, DiskError>
[src]

pub fn remove_username(
    username: &str,
    file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]

pub fn create_db(
    username: &str,
    db_name: &str,
    file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]

pub fn get_dbs(
    username: &str,
    file_base_path: Option<&str>
) -> Result<Vec<String>, DiskError>
[src]

pub fn remove_db(
    username: &str,
    db_name: &str,
    file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]

pub fn create_table(
    username: &str,
    db_name: &str,
    table: &Table,
    file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]

pub fn get_tables(
    username: &str,
    db_name: &str,
    file_base_path: Option<&str>
) -> Result<Vec<String>, DiskError>
[src]

pub fn load_tables_meta(
    username: &str,
    db_name: &str,
    file_base_path: Option<&str>
) -> Result<Vec<TableMeta>, DiskError>
[src]

pub fn load_table_meta(
    username: &str,
    db_name: &str,
    table_name: &str,
    file_base_path: Option<&str>
) -> Result<TableMeta, DiskError>
[src]

pub fn drop_table(
    username: &str,
    db_name: &str,
    table_name: &str,
    file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]

pub fn append_rows(
    username: &str,
    db_name: &str,
    table_name: &str,
    rows: &Vec<Row>,
    file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]

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]

pub fn delete_rows(
    username: &str,
    db_name: &str,
    table_name: &str,
    row_range: &Vec<u32>,
    file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]

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]

pub fn get_num_rows(
    username: &str,
    db_name: &str,
    table_name: &str,
    file_base_path: Option<&str>
) -> Result<u32, DiskError>
[src]

pub fn storage_hierarchy_check(
    base_path: &str,
    username: Option<&str>,
    db_name: Option<&str>,
    table_name: Option<&str>
) -> Result<(), DiskError>
[src]

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]

pub fn load_index(
    username: &str,
    db_name: &str,
    table_name: &str,
    file_base_path: Option<&str>
) -> Result<Index, DiskError>
[src]

pub fn save_index(
    index: &Index,
    file_base_path: Option<&str>
) -> Result<(), DiskError>
[src]

Trait Implementations

impl Clone for 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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T