Struct et::Et[][src]

pub struct Et {
    pub conn: Connection,
    pub collections: HashMap<String, Collection>,
}

Fields

conn: Connectioncollections: HashMap<String, Collection>

Implementations

impl Et[src]

pub fn new<P: AsRef<Path>>(path: P) -> Et[src]

pub fn close(self)[src]

pub fn list_collections(&mut self) -> Result<Vec<String>>[src]

pub fn create_collection(&mut self, name: &str) -> Result<bool, Error>[src]

pub fn execute(&self, query: Query) -> Result<Vec<Entry>, Error>[src]

pub fn add_object_to_collection(
    &mut self,
    cname: &str,
    val: String
) -> Result<bool, Error>
[src]

pub fn add_index_to_collection(
    &mut self,
    collection_name: &str,
    key: &str,
    index_name: &str
) -> Result<bool, Error>
[src]

pub fn insert<T: Serialize>(
    &mut self,
    cname: &str,
    svalue: &T
) -> Result<bool, Error>
[src]

pub fn upsert_at_index<T: Serialize>(
    &mut self,
    cname: &str,
    index: usize,
    svalue: &T
) -> Result<bool, Error>
[src]

Trait Implementations

impl Debug for Et[src]

Auto Trait Implementations

impl !RefUnwindSafe for Et

impl Send for Et

impl !Sync for Et

impl Unpin for Et

impl UnwindSafe for Et

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.