Struct yedb::Database [−][src]
pub struct Database { pub auto_repair: bool, pub auto_flush: bool, pub write_modified_only: bool, pub timeout: Duration, pub lock_ex: bool, pub auto_bak: u64, // some fields omitted }
Fields
auto_repair: bool
auto_flush: bool
write_modified_only: bool
timeout: Duration
lock_ex: bool
auto_bak: u64
Implementations
impl Database
[src]
impl Database
[src]pub fn new() -> Self
[src]
pub fn is_open(&self) -> bool
[src]
pub fn set_default_fmt(
&mut self,
fmt: &str,
checksums: bool
) -> Result<(), Error>
[src]
&mut self,
fmt: &str,
checksums: bool
) -> Result<(), Error>
pub fn set_db_path(&mut self, path: &str) -> Result<(), Error>
[src]
pub fn set_cache_size(&mut self, size: usize)
[src]
pub fn set_lock_path(&mut self, path: &str) -> Result<(), Error>
[src]
pub fn open(&mut self) -> Result<ServerInfo, Error>
[src]
pub fn close(&mut self) -> Result<(), Error>
[src]
pub fn key_load_from_serialized(
&mut self,
data: &Vec<Value>
) -> Result<(), Error>
[src]
&mut self,
data: &Vec<Value>
) -> Result<(), Error>
pub fn info(&self) -> Result<DBInfo, Error>
[src]
pub fn server_set(&mut self, name: &str, value: Value) -> Result<(), Error>
[src]
pub fn purge(&mut self) -> Result<Vec<String>, Error>
[src]
pub fn safe_purge(&mut self) -> Result<(), Error>
[src]
pub fn purge_cache(&mut self) -> Result<(), Error>
[src]
pub fn key_delete(&mut self, key: &str) -> Result<(), Error>
[src]
pub fn key_delete_recursive(&mut self, key: &str) -> Result<(), Error>
[src]
pub fn key_explain(&mut self, key: &str) -> Result<KeyExplained, Error>
[src]
pub fn key_get(&mut self, key: &str) -> Result<Value, Error>
[src]
pub fn key_get_recursive(
&mut self,
key: &str
) -> Result<Vec<(String, Value)>, Error>
[src]
&mut self,
key: &str
) -> Result<Vec<(String, Value)>, Error>
pub fn key_get_field(&mut self, key: &str, field: &str) -> Result<Value, Error>
[src]
pub fn key_get_field(&mut self, key: &str, field: &str) -> Result<Value, Error>
[src]Get key field
field may contain a simple path (e.g. field/subfield/subsubfield)
pub fn key_set_field(
&mut self,
key: &str,
field: &str,
value: Value
) -> Result<(), Error>
[src]
pub fn key_set_field(
&mut self,
key: &str,
field: &str,
value: Value
) -> Result<(), Error>
[src]Set key field
field may contain a simple path (e.g. field/subfield/subsubfield)
pub fn key_delete_field(&mut self, key: &str, field: &str) -> Result<(), Error>
[src]
pub fn key_delete_field(&mut self, key: &str, field: &str) -> Result<(), Error>
[src]Delete key field
field may contain a simple path (e.g. field/subfield/subsubfield)
pub fn key_set(&mut self, key: &str, value: Value) -> Result<(), Error>
[src]
pub fn key_list(&mut self, key: &str) -> Result<Vec<String>, Error>
[src]
pub fn key_list_all(&mut self, key: &str) -> Result<Vec<String>, Error>
[src]
pub fn key_copy(&mut self, key: &str, dst_key: &str) -> Result<(), Error>
[src]
pub fn key_increment(&mut self, key: &str) -> Result<i64, Error>
[src]
pub fn key_decrement(&mut self, key: &str) -> Result<i64, Error>
[src]
pub fn key_rename(&mut self, key: &str, dst_key: &str) -> Result<(), Error>
[src]
pub fn check(&mut self) -> Result<Vec<String>, Error>
[src]
pub fn repair(&mut self) -> Result<Vec<(String, bool)>, Error>
[src]
pub fn key_dump(&mut self, key: &str) -> Result<Vec<(String, Value)>, Error>
[src]
pub fn key_load(&mut self, data: Vec<(String, Value)>) -> Result<(), Error>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self