Archeometer.Query.Subquery (Archeometer v0.5.0)
This module represents SQL subqueries. This subqueries partially mimics a
query. At the moment, only a select
field is allowed.
Link to this section Summary
Functions
Currently, the only way to use sub queries is through an SQL keyword with support for them. Of course, initially those keywords have regular ASTs as arguments.
Creates a new subquery from with the given query as parent.
Link to this section Functions
Link to this function
escape_subqueries(q, ast)
Currently, the only way to use sub queries is through an SQL keyword with support for them. Of course, initially those keywords have regular ASTs as arguments.
Here, we replace the AST of the arguments of those keywords with subqueries.
Link to this function
new(q, list)
Creates a new subquery from with the given query as parent.