View Source Guesswork.Query (Guesswork v0.5.0)
Represents an un-resolved query.
Summary
Functions
Builds a new query.
Types
@type t() :: %Guesswork.Query{ computation: Enumerable.t(Guesswork.Answer.t()), id: String.t() }
Functions
@spec new(Guesswork.Ast.Statement.t(), Guesswork.Ast.Statement.Opts.opts_list()) :: t()
Builds a new query.
Available Options:
:knowledge_base
(term/0
) - TheGuesswork.KnowledgeBase
used to resolve queries. The default value isGuesswork.EmptyCollection
.:query_id
(String.t/0
) - The id used to report telemetry. Defaults to a newUUID
(v4).:precompute_count
(integer/0
) - How many answer sets to precmpute, shuffle, and share when queries have repeated fact statements that result in the same matches and substitutions. The default value is100
.