Struct mentat_db::types::DB
[−]
[src]
pub struct DB { pub partition_map: PartitionMap, pub schema: Schema, }
Represents the metadata required to query from, or apply transactions to, a Mentat store.
See https://github.com/mozilla/mentat/wiki/Thoughts:-modeling-db-conn-in-Rust.
Fields
partition_map: PartitionMap
Map partition name->Partition
.
TODO: represent partitions as entids.
schema: Schema
The schema of the store.
Methods
impl DB
[src]
impl DB
pub fn new(partition_map: PartitionMap, schema: Schema) -> DB
[src]
pub fn new(partition_map: PartitionMap, schema: Schema) -> DB
Trait Implementations
impl Clone for DB
[src]
impl Clone for DB
fn clone(&self) -> DB
[src]
fn clone(&self) -> DB
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for DB
[src]
impl Debug for DB
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for DB
[src]
impl Default for DB
impl Eq for DB
[src]
impl Eq for DB
impl Hash for DB
[src]
impl Hash for DB
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for DB
[src]
impl Ord for DB
fn cmp(&self, __arg_0: &DB) -> Ordering
[src]
fn cmp(&self, __arg_0: &DB) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for DB
[src]
impl PartialOrd for DB
fn partial_cmp(&self, __arg_0: &DB) -> Option<Ordering>
[src]
fn partial_cmp(&self, __arg_0: &DB) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &DB) -> bool
[src]
fn lt(&self, __arg_0: &DB) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &DB) -> bool
[src]
fn le(&self, __arg_0: &DB) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &DB) -> bool
[src]
fn gt(&self, __arg_0: &DB) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &DB) -> bool
[src]
fn ge(&self, __arg_0: &DB) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for DB
[src]
impl PartialEq for DB