[][src]Struct stellar_sql::storage::file::File

pub struct File {}

Methods

impl File[src]

pub fn create_file_base(base_path: &str) -> Result<(), DiskError>[src]

pub fn create_username(username: &str, base_path: &str) -> Result<(), DiskError>[src]

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

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

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

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

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

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

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

get the list of tables in a database for show tables

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

load metadata of all tables from the database

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

load a particular table meta data

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

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

pub fn fetch_rows(
    username: &str,
    db_name: &str,
    table_name: &str,
    row_range: &Vec<u32>,
    base_path: &str
) -> Result<Vec<Row>, DiskError>
[src]

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

pub fn modify_rows(
    username: &str,
    db_name: &str,
    table_name: &str,
    row_range: &Vec<u32>,
    new_rows: &Vec<Row>,
    base_path: &str
) -> Result<(), DiskError>
[src]

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

Trait Implementations

impl Clone for File[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for File[src]

Auto Trait Implementations

impl Send for File

impl Sync for File

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