[−][src]Struct hotpot_db::HotPot
Fields
conn: Connection
collections: 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]
&mut self,
cname: &str,
val: String
) -> Result<bool, Error>
pub fn add_index_to_collection(
&mut self,
collection_name: &str,
key: &str,
index_name: &str
) -> Result<bool, Error>
[src]
&mut self,
collection_name: &str,
key: &str,
index_name: &str
) -> Result<bool, Error>
pub fn insert<T: Serialize>(
&mut self,
cname: &str,
svalue: &T
) -> Result<bool, Error>
[src]
&mut self,
cname: &str,
svalue: &T
) -> Result<bool, Error>
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,