[][src]Struct icbiadb::db::Db

pub struct Db { /* fields omitted */ }

Methods

impl Db[src]

pub fn create<S: AsRef<str>>(file_name: S) -> Result<Self>[src]

pub fn read<S: AsRef<str>>(file_name: S) -> Result<Self>[src]

pub fn read_to_mem<S: AsRef<str>>(file_name: S) -> Result<Self>[src]

pub fn mem() -> Result<Self>[src]

pub fn file_name(&self) -> &str[src]

pub fn memory(&self) -> &Memory[src]

pub fn memory_mut(&mut self) -> &mut Memory[src]

pub fn len(&self) -> usize[src]

pub fn declarations(&self) -> &DeclarationMap[src]

pub fn kv_records(&self) -> &Vec<(BvString, BvObject)>[src]

pub fn decl_records(&self) -> &DeclarationRecords[src]

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

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

pub fn store<S: AsRef<str>, T: Sized + Serialize>(&mut self, k: S, v: T)[src]

pub fn store_as<S: AsRef<str>, T: Sized + Serialize>(
    &mut self,
    k: S,
    t: S,
    v: T
)
[src]

pub fn store_raw<S: AsRef<str>>(&mut self, k: S, t: S, v: Vec<u8>)[src]

pub fn store_many<S: AsRef<str>, T: Sized + Serialize>(
    &mut self,
    values: &Vec<(S, T)>
)
[src]

pub fn store_many_as<S: AsRef<str>, T: Sized + Serialize>(
    &mut self,
    values: &Vec<(S, S, T)>
)
[src]

pub fn fetch<S: AsRef<str>>(&self, key: S) -> &BvObject[src]

pub fn fetch_value<T: DeserializeOwned>(&self, key: &str) -> T[src]

pub fn fetch_raw<S: AsRef<str>>(&self, key: S) -> &(BvString, BvObject)[src]

pub fn update<S: AsRef<str>, T: Serialize>(&mut self, k: S, v: T)[src]

pub fn update_record(&mut self, record: impl RecordRead)[src]

pub fn update_many(&mut self, records: &Vec<impl RecordRead>)[src]

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

pub fn remove_record(&mut self, record: impl RecordRead)[src]

pub fn remove_many(&mut self, records: &Vec<impl RecordRead>)[src]

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

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

pub fn declare<'a, S: AsRef<str>>(&mut self, name: S) -> Declare[src]

pub fn insert_decl(&mut self, dg: &Declare)[src]

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

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

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

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

pub fn decl_insert_many<S: AsRef<str>>(
    &mut self,
    name: S,
    rows: Vec<DeclarationRecord>
) -> Result<(), String>
[src]

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

Trait Implementations

impl BytesFilter for Db[src]

impl BytesSearch for Db[src]

Auto Trait Implementations

impl RefUnwindSafe for Db

impl Send for Db

impl Sync for Db

impl Unpin for Db

impl UnwindSafe for Db

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.