Crate mentat_db [] [src]

Re-exports

pub use entids::DB_SCHEMA_CORE;
pub use db::TypedSQLValue;
pub use db::new_connection;
pub use tx_observer::InProgressObserverTransactWatcher;
pub use tx_observer::TxObservationService;
pub use tx_observer::TxObserver;
pub use types::AttributeSet;
pub use types::DB;
pub use types::Partition;
pub use types::PartitionMap;
pub use types::TransactableValue;

Modules

cache
db
debug
entids
internal_types

Types used only within the transactor. These should not be exposed outside of this crate.

timelines
tx_observer
types

Macros

assert_matches

Low-level functions for testing.

assert_transact

Structs

AttributeBuilder
V1_PARTS

Constants

CORE_SCHEMA_VERSION
TX0

The first transaction ID applied to the knowledge base.

USER0

This is the start of the :db.part/user partition.

Statics

TIMELINE_MAIN

Traits

AttributeValidation
TransactWatcher

Functions

repeat_values

Prepare an SQL VALUES block, like (?, ?, ?), (?, ?, ?).

to_namespaced_keyword
transact

Transact the given entities against the given SQLite conn, using the given metadata. If you want this work to occur inside a SQLite transaction, establish one on the connection prior to calling this function.

transact_terms

Just like transact, but accepts lower-level inputs to allow bypassing the parser interface.