Struct mentat_db::cache::SQLiteAttributeCache
[−]
[src]
pub struct SQLiteAttributeCache { /* fields omitted */ }
Methods
impl SQLiteAttributeCache
[src]
impl SQLiteAttributeCache
pub fn register_forward<U>(
&mut self,
schema: &Schema,
sqlite: &Connection,
attribute: U
) -> Result<()> where
U: Into<Entid>,
[src]
pub fn register_forward<U>(
&mut self,
schema: &Schema,
sqlite: &Connection,
attribute: U
) -> Result<()> where
U: Into<Entid>,
pub fn register_reverse<U>(
&mut self,
schema: &Schema,
sqlite: &Connection,
attribute: U
) -> Result<()> where
U: Into<Entid>,
[src]
pub fn register_reverse<U>(
&mut self,
schema: &Schema,
sqlite: &Connection,
attribute: U
) -> Result<()> where
U: Into<Entid>,
pub fn register<U>(
&mut self,
schema: &Schema,
sqlite: &Connection,
attribute: U
) -> Result<()> where
U: Into<Entid>,
[src]
pub fn register<U>(
&mut self,
schema: &Schema,
sqlite: &Connection,
attribute: U
) -> Result<()> where
U: Into<Entid>,
pub fn unregister<U>(&mut self, attribute: U) where
U: Into<Entid>,
[src]
pub fn unregister<U>(&mut self, attribute: U) where
U: Into<Entid>,
pub fn unregister_all(&mut self)
[src]
pub fn unregister_all(&mut self)
impl SQLiteAttributeCache
[src]
impl SQLiteAttributeCache
pub fn values_pairs<U>(
&self,
schema: &Schema,
attribute: U
) -> Option<&BTreeMap<Entid, Vec<TypedValue>>> where
U: Into<Entid>,
[src]
pub fn values_pairs<U>(
&self,
schema: &Schema,
attribute: U
) -> Option<&BTreeMap<Entid, Vec<TypedValue>>> where
U: Into<Entid>,
Intended for use from tests.
pub fn value_pairs<U>(
&self,
schema: &Schema,
attribute: U
) -> Option<&BTreeMap<Entid, Option<TypedValue>>> where
U: Into<Entid>,
[src]
pub fn value_pairs<U>(
&self,
schema: &Schema,
attribute: U
) -> Option<&BTreeMap<Entid, Option<TypedValue>>> where
U: Into<Entid>,
Intended for use from tests.
Trait Implementations
impl Clone for SQLiteAttributeCache
[src]
impl Clone for SQLiteAttributeCache
fn clone(&self) -> SQLiteAttributeCache
[src]
fn clone(&self) -> SQLiteAttributeCache
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for SQLiteAttributeCache
[src]
impl Debug for SQLiteAttributeCache
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 SQLiteAttributeCache
[src]
impl Default for SQLiteAttributeCache
fn default() -> SQLiteAttributeCache
[src]
fn default() -> SQLiteAttributeCache
Returns the "default value" for a type. Read more
impl UpdateableCache for SQLiteAttributeCache
[src]
impl UpdateableCache for SQLiteAttributeCache
type Error = Error
fn update<I>(
&mut self,
schema: &Schema,
retractions: I,
assertions: I
) -> Result<(), Self::Error> where
I: Iterator<Item = (Entid, Entid, TypedValue)>,
[src]
fn update<I>(
&mut self,
schema: &Schema,
retractions: I,
assertions: I
) -> Result<(), Self::Error> where
I: Iterator<Item = (Entid, Entid, TypedValue)>,
impl CachedAttributes for SQLiteAttributeCache
[src]
impl CachedAttributes for SQLiteAttributeCache
fn get_values_for_entid(
&self,
schema: &Schema,
attribute: Entid,
entid: Entid
) -> Option<&Vec<TypedValue>>
[src]
fn get_values_for_entid(
&self,
schema: &Schema,
attribute: Entid,
entid: Entid
) -> Option<&Vec<TypedValue>>
fn get_value_for_entid(
&self,
schema: &Schema,
attribute: Entid,
entid: Entid
) -> Option<&TypedValue>
[src]
fn get_value_for_entid(
&self,
schema: &Schema,
attribute: Entid,
entid: Entid
) -> Option<&TypedValue>
fn is_attribute_cached_reverse(&self, attribute: Entid) -> bool
[src]
fn is_attribute_cached_reverse(&self, attribute: Entid) -> bool
fn is_attribute_cached_forward(&self, attribute: Entid) -> bool
[src]
fn is_attribute_cached_forward(&self, attribute: Entid) -> bool
fn has_cached_attributes(&self) -> bool
[src]
fn has_cached_attributes(&self) -> bool
fn get_entids_for_value(
&self,
attribute: Entid,
value: &TypedValue
) -> Option<&BTreeSet<Entid>>
[src]
fn get_entids_for_value(
&self,
attribute: Entid,
value: &TypedValue
) -> Option<&BTreeSet<Entid>>
fn get_entid_for_value(
&self,
attribute: Entid,
value: &TypedValue
) -> Option<Entid>
[src]
fn get_entid_for_value(
&self,
attribute: Entid,
value: &TypedValue
) -> Option<Entid>
Reverse lookup.
Auto Trait Implementations
impl Send for SQLiteAttributeCache
impl Send for SQLiteAttributeCache
impl Sync for SQLiteAttributeCache
impl Sync for SQLiteAttributeCache