Add example for elements->sql-projection.

This commit is contained in:
Richard Newman 2016-07-12 18:47:09 -07:00
parent 0149bdcd77
commit fe47a51a0d

View file

@ -107,6 +107,12 @@
projection clause, suitable for passing as a `:select` clause to projection clause, suitable for passing as a `:select` clause to
honeysql. honeysql.
Example:
[Variable{:symbol ?foo}, Variable{:symbol ?bar}]
{?foo [:eavt12.e :eavt13.v], ?bar [:eavt13.e]}
=>
[[:eavt12.e :foo] [:eavt13.e :bar]]
@param elements The input clause. @param elements The input clause.
@param variable-lookup A function from symbol to column name. @param variable-lookup A function from symbol to column name.
@return a sequence of pairs." @return a sequence of pairs."