Crate mentat_core [−] [src]
Modules
attribute | |
counter | |
intern_set | |
util | |
values |
Macros
interpose |
A helper macro to sequentially process an iterable sequence, evaluating a block between each pair of items. |
interpose_iter |
A helper to bind |
Structs
Attribute |
A Mentat schema attribute has a value type and several other flags determining how assertions with the attribute are interpreted. |
DateTime |
ISO 8601 combined date and time with time zone. |
EdnParseError | |
Keyword |
A keyword is a symbol, optionally with a namespace, that prints with a leading colon. This concept is imported from Clojure, as it features in EDN and the query syntax that we use. |
KnownEntid |
An entid that's either already in the store, or newly allocated to a tempid. TODO: we'd like to link this in some way to the lifetime of a particular PartitionMap. |
Schema |
Represents a Mentat schema. |
StructuredMap |
A pull expression expands a binding into a structure. The returned structure
associates attributes named in the input or retrieved from the store with values.
This association is a |
Utc |
The UTC time zone. This is the most efficient time zone when you don't need the local time. It is also used as an offset (which is also a dummy type). |
Uuid |
A Universally Unique Identifier (UUID). |
ValueTypeSet |
Enums
AttributeBitFlags |
Bit flags used in |
Binding |
The values bound in a query specification can be: |
SQLTypeAffinity |
Type safe representation of the possible return values from SQLite's |
TypedValue |
Represents a value that can be stored in a Mentat store. |
ValueType |
The attribute of each Mentat assertion has a :db/valueType constraining the value to a particular set. Mentat recognizes the following :db/valueType values. |
Traits
CachedAttributes | |
Cloned | |
FromMicros | |
FromRc | |
HasSchema | |
SQLValueType | |
SQLValueTypeSet |
We have an enum of types, |
Timelike |
The common set of methods for time component. |
ToMicros | |
UpdateableCache |
Functions
now |
Return the current time as a UTC |
parse_query |
Type Definitions
AttributeMap |
Map attribute entids to |
Entid |
Represents one entid in the entid space. |
EntidMap |
Map positive integer entids ( |
IdentMap |
Map |
ValueRc |
This type alias exists to allow us to use different boxing mechanisms for values.
This type must implement |
ValueTypeTag |