The functions translated SQL calls by name.
The translator emits a Datalog clause naming one of these by its qualified
symbol, datahike.pg.query-fns/sql-eq? and so on. Every public var here is
a pure function of its arguments, and nothing else is public: this
namespace is the allow-list a query may call, so a function that reads or
changes process state never belongs here. Catalog SQL functions, volatile
functions and sequences do not come through here at all -- the translator
binds them as values, and the handler runs the impure ones after the query.
datahike.pg.resolve turns these vars into the table pg-datahike resolves
query symbols with.
The functions translated SQL calls by name. The translator emits a Datalog clause naming one of these by its qualified symbol, `datahike.pg.query-fns/sql-eq?` and so on. Every public var here is a pure function of its arguments, and nothing else is public: this namespace is the allow-list a query may call, so a function that reads or changes process state never belongs here. Catalog SQL functions, volatile functions and sequences do not come through here at all -- the translator binds them as values, and the handler runs the impure ones after the query. `datahike.pg.resolve` turns these vars into the table pg-datahike resolves query symbols with.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |