Struct mentat::conn::Conn [] [src]

pub struct Conn { /* fields omitted */ }

A mutable, safe reference to the current Mentat store.

Methods

impl Conn
[src]

Yield a clone of the current Schema instance.

Query the Mentat store, using the given connection and the current metadata.

Query the Mentat store, using the given connection and the current metadata, but without using the cache.

IMMEDIATE means 'start the transaction now, but don't exclude readers'. It prevents other connections from taking immediate or exclusive transactions. This is appropriate for our writes and InProgress: it means we are ready to write whenever we want to, and nobody else can start a transaction that's not DEFERRED, but we don't need exclusivity yet.

Transact entities against the Mentat store, using the given connection and the current metadata.

Adds or removes the values of a given attribute to an in-memory cache. The attribute should be a namespaced string: e.g., :foo/bar. cache_action determines if the attribute should be added or removed from the cache. CacheAction::Add is idempotent - each attribute is only added once. CacheAction::Remove throws an error if the attribute does not currently exist in the cache.

Trait Implementations

Auto Trait Implementations

impl Send for Conn

impl Sync for Conn