[][src]Struct hotpot_db::HotPot

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

Fields

conn: Connectioncollections: HashMap<String, Collection>

Methods

impl HotPot[src]

pub fn new() -> HotPot[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]

Trait Implementations

impl Debug for HotPot[src]

Auto Trait Implementations

impl !RefUnwindSafe for HotPot

impl Send for HotPot

impl !Sync for HotPot

impl Unpin for HotPot

impl UnwindSafe for HotPot

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.