Struct castor::Store
[−]
[src]
pub struct Store(pub Store);
A Store holds content adressable values
Methods
impl Store
[src]
pub fn config<P: AsRef<Path>>(path: P) -> Config
[src]
Create a new configuration builder
pub fn new(cfg: Config) -> Result<Store, Error>
[src]
Create a new store from the given configuration
pub fn read_txn<'a, V: Value<'a>>(&'a self) -> Result<Txn<'a, V>, Error>
[src]
Open a readonly transaction
pub fn write_txn<'a, V: Value<'a>>(&'a mut self) -> Result<Txn<'a, V>, Error>
[src]
Open a writable transaction
pub fn bucket<'a, V: Value<'a>>(
&self,
name: Option<&str>
) -> Result<Bucket<'a, Token, V>, Error>
[src]
&self,
name: Option<&str>
) -> Result<Bucket<'a, Token, V>, Error>
Get handle to kv::Bucket