[][src]Struct icbiadb::database::table::TableDb

pub struct TableDb {
    pub file_name: String,
    pub maps: TableMap,
    pub rows: TableRows,
}

Fields

file_name: Stringmaps: TableMaprows: TableRows

Implementations

impl TableDb[src]

pub fn commit(&self) -> Result<()>[src]

pub fn exists<S: AsRef<str>>(&self, name: S) -> bool[src]

pub fn new_table<S: AsRef<str>>(&self, name: S) -> Table[src]

pub fn create(&mut self, table: Table)[src]

pub fn remove<S: AsRef<str>>(&mut self, name: S)[src]

pub fn map<S: AsRef<str>>(&self, name: S) -> &FieldMap[src]

pub fn rows<S: AsRef<str>>(&self, name: S) -> &Vec<TableRow>[src]

pub fn insert_row<S: AsRef<str>>(
    &mut self,
    name: S,
    row: TableRow
) -> Result<(), String>
[src]

pub fn insert_many<S: AsRef<str>>(
    &mut self,
    name: S,
    new_rows: Vec<TableRow>
) -> Result<(), String>
[src]

pub fn query<S: AsRef<str>>(&self, name: S) -> QueryBuilder<'_>[src]

Trait Implementations

impl Default for TableDb[src]

Auto Trait Implementations

impl RefUnwindSafe for TableDb

impl Send for TableDb

impl Sync for TableDb

impl Unpin for TableDb

impl UnwindSafe for TableDb

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.