View Source AyeSQL.Compiler (AyeSQL v1.1.3)
This module defines functions to compile AyeSQL language strings.
Summary
Types
Query documentation.
Query fragment.
Query fragments.
Query name.
Query parameter.
Queries.
Query.
Functions
Compiles the contents of a file or string into valid AyeSQL queries.
Compiles a single query from the contents of a string.
Evaluates the contents of a string to an anonymous function with a query
that receives parameters and options.
Types
Functions
@spec compile_queries(binary(), AyeSQL.Lexer.options()) :: [Macro.t()] | no_return()
Compiles the contents of a file or string into valid AyeSQL queries.
@spec compile_query(binary(), AyeSQL.Lexer.options()) :: Macro.t() | no_return()
Compiles a single query from the contents of a string.
@spec eval_query(binary(), AyeSQL.Lexer.options()) :: (AyeSQL.Core.parameters(), AyeSQL.Core.options() -> {:ok, AyeSQL.Query.t() | term()} | {:error, AyeSQL.Error.t() | term()}) | no_return()
Evaluates the contents of a string to an anonymous function with a query
that receives parameters and options.