Struct et::Et [−][src]
Fields
conn: Connection
collections: 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]
&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>
pub fn upsert_at_index<T: Serialize>(
&mut self,
cname: &str,
index: usize,
svalue: &T
) -> Result<bool, Error>
[src]
&mut self,
cname: &str,
index: usize,
svalue: &T
) -> Result<bool, Error>
Trait Implementations
Auto Trait Implementations
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,
pub 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.
pub 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>,