Liking cljdoc? Tell your friends :D

pg.honey


executeclj

(execute conn sql-map)
(execute conn sql-map {:as opt :keys [honey]})

Like pg.core/execute but accepts a HoneySQL map which gets rendered into SQL vector and split on a query and parameters.

Arguments:

  • conn: a Connection object;
  • sql-map: a map like {:select [:this :that] :from [...]}
  • opt: query options; pass the :honey key for HoneySQL params.

Result:

  • same as pg.core/execute.
Like `pg.core/execute` but accepts a HoneySQL map
which gets rendered into SQL vector and split on a query
and parameters.

Arguments:
- conn: a Connection object;
- sql-map: a map like {:select [:this :that] :from [...]}
- opt: query options; pass the `:honey` key for HoneySQL params.

Result:
- same as `pg.core/execute`.
sourceraw docstring

formatclj

(format sql-map)
(format sql-map opt)

Like honey.sql/format but with some overrides.

Like honey.sql/format but with some overrides.
sourceraw docstring

HONEY_OVERRIDESclj

source

queryclj

(query conn sql-map)
(query conn sql-map {:as opt :keys [honey]})

Like pg.core/query but accepts a HoneySQL map which gets rendered into a SQL string.

Arguments:

  • conn: a Connection object;
  • sql-map: a map like {:select [:this :that] :from [...]}
  • opt: query options; pass the :honey key for HoneySQL params.

Result:

  • the same as pg.core/query.
Like `pg.core/query` but accepts a HoneySQL map
which gets rendered into a SQL string.

Arguments:
- conn: a Connection object;
- sql-map: a map like {:select [:this :that] :from [...]}
- opt: query options; pass the `:honey` key for HoneySQL params.

Result:
- the same as `pg.core/query`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close