[−][src]Struct stellar_sql::storage::file::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]
username: &str,
db_name: &str,
base_path: &str
) -> Result<(), DiskError>
pub fn get_dbs(
username: &str,
base_path: &str
) -> Result<Vec<String>, DiskError>
[src]
username: &str,
base_path: &str
) -> Result<Vec<String>, DiskError>
pub fn remove_db(
username: &str,
db_name: &str,
base_path: &str
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
base_path: &str
) -> Result<(), DiskError>
pub fn create_table(
username: &str,
db_name: &str,
table: &Table,
base_path: &str
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
table: &Table,
base_path: &str
) -> Result<(), DiskError>
pub fn get_tables(
username: &str,
db_name: &str,
base_path: &str
) -> Result<Vec<String>, DiskError>
[src]
username: &str,
db_name: &str,
base_path: &str
) -> Result<Vec<String>, DiskError>
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]
username: &str,
db_name: &str,
base_path: &str
) -> Result<Vec<TableMeta>, DiskError>
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]
username: &str,
db_name: &str,
table_name: &str,
base_path: &str
) -> Result<TableMeta, DiskError>
load a particular table meta data
pub fn drop_table(
username: &str,
db_name: &str,
table_name: &str,
base_path: &str
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
base_path: &str
) -> Result<(), DiskError>
pub fn append_rows(
username: &str,
db_name: &str,
table_name: &str,
rows: &Vec<Row>,
base_path: &str
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
rows: &Vec<Row>,
base_path: &str
) -> Result<(), DiskError>
pub fn fetch_rows(
username: &str,
db_name: &str,
table_name: &str,
row_range: &Vec<u32>,
base_path: &str
) -> Result<Vec<Row>, DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
row_range: &Vec<u32>,
base_path: &str
) -> Result<Vec<Row>, DiskError>
pub fn delete_rows(
username: &str,
db_name: &str,
table_name: &str,
row_range: &Vec<u32>,
base_path: &str
) -> Result<(), DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
row_range: &Vec<u32>,
base_path: &str
) -> Result<(), DiskError>
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]
username: &str,
db_name: &str,
table_name: &str,
row_range: &Vec<u32>,
new_rows: &Vec<Row>,
base_path: &str
) -> Result<(), DiskError>
pub fn get_num_rows(
username: &str,
db_name: &str,
table_name: &str,
base_path: &str
) -> Result<u32, DiskError>
[src]
username: &str,
db_name: &str,
table_name: &str,
base_path: &str
) -> Result<u32, DiskError>
Trait Implementations
impl Clone for File
[src]
fn clone(&self) -> 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
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.