Module mentat_transaction::query
[−]
[src]
Structs
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. |
Known |
A convenience wrapper around things known in memory: the schema and caches. We use a trait object here to avoid making dozens of functions generic over the type of the cache. If performance becomes a concern, we should hard-code specific kinds of cache right here, and/or eliminate the Option. |
PlainSymbol |
A simplification of Clojure's Symbol. |
QueryInputs |
Define the inputs to a query. This is in two parts: a set of values known now, and a set of
types known now.
The separate map of types is to allow queries to be algebrized without full knowledge of
the bindings that will be used at execution time.
When built correctly, |
QueryOutput | |
QueryPlanStep |
A single row in the output of SQLite's |
RelResult |
The result you get from a 'rel' query, like: |
Variable |
Enums
PreparedQuery | |
QueryExplanation |
A struct describing information about how Mentat would execute a query. |
QueryResults |
Traits
IntoResult |
Functions
lookup_value |
Return a single value for the provided entity and attribute.
If the attribute is multi-valued, an arbitrary value is returned.
If no value is present for that entity, |
lookup_value_for_attribute |
Return a single value for the provided entity and attribute.
If the attribute is multi-valued, an arbitrary value is returned.
If no value is present for that entity, |
lookup_values | |
lookup_values_for_attribute | |
q_explain | |
q_once |
Take an EDN query string, a reference to an open SQLite connection, a Mentat schema, and an
optional collection of input bindings (which should be keyed by |
q_prepare | |
q_uncached |
Just like |
Type Definitions
PreparedResult | |
QueryExecutionResult |