AyeSQL v0.5.5 AyeSQL.AST.Context View Source
This module defines an AST context.
Link to this section Summary
Functions
AST context struct.
Adds a value
to the context
index.
Context id function.
Merges two contexts.
Merges a context
with an error
Merges a context
with a query
.
Creates a new context given some options
.
Updates context
with the error not found for a key
.
Adds arguments in a context
given a new value
.
Adds statement in a context
given a new value
.
Puts a new variable value
in the context
.
Puts several variable value
in the context
as an SQL list.
Transforms a context to a query.
Link to this section Types
Argument list.
Error.
Error type.
Current context index.
Accumulated statement.
AST context.
Link to this section Functions
AST context struct.
add_index(context, value \\ 1)
View Sourceadd_index(t(), non_neg_integer()) :: t()
Adds a value
to the context
index.
Context id function.
Merges two contexts.
merge_error(context, error)
View Sourcemerge_error(t(), AyeSQL.Error.t()) :: t()
Merges a context
with an error
merge_query(context, query)
View Sourcemerge_query(t(), AyeSQL.Query.t()) :: t()
Merges a context
with a query
.
Creates a new context given some options
.
not_found(context, key)
View Sourcenot_found(t(), AyeSQL.Core.parameter_name()) :: t()
Updates context
with the error not found for a key
.
Adds arguments in a context
given a new value
.
Adds statement in a context
given a new value
.
Puts a new variable value
in the context
.
Puts several variable value
in the context
as an SQL list.
to_query(context)
View Sourceto_query(t()) :: {:ok, AyeSQL.Query.t()} | {:error, AyeSQL.Error.t()}
Transforms a context to a query.