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

Map partition name->Partition.

TODO: represent partitions as entids.

The schema of the store.

Methods

impl DB
[src]

Trait Implementations

impl Clone for DB
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DB
[src]

Formats the value using the given formatter. Read more

impl Default for DB
[src]

Returns the "default value" for a type. Read more

impl Eq for DB
[src]

impl Hash for DB
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for DB
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for DB
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for DB

impl Sync for DB