Extend next.jdbc's SettableParameter and ReadableColumn protocols so that PGobject (json/jsonb/enum), SQL arrays and inet values move between Clojure data and PostgreSQL without manual wrapping.
The map->parameter / vec->parameter / num->parameter multimethods are the extension seam: companion artifacts (e.g. psql-clj-gis) add methods for their own SQL types without this namespace depending on them.
Extend next.jdbc's SettableParameter and ReadableColumn protocols so that PGobject (json/jsonb/enum), SQL arrays and inet values move between Clojure data and PostgreSQL without manual wrapping. The map->parameter / vec->parameter / num->parameter multimethods are the extension seam: companion artifacts (e.g. psql-clj-gis) add methods for their own SQL types without this namespace depending on them.
(json value)Tag any Clojure value, including scalars and nil, as PostgreSQL json.
Tag any Clojure value, including scalars and nil, as PostgreSQL json.
(jsonb value)Tag any Clojure value, including scalars and nil, as PostgreSQL jsonb.
Tag any Clojure value, including scalars and nil, as PostgreSQL jsonb.
(pmd md i)Convert one column of ParameterMetaData to a map.
Convert one column of ParameterMetaData to a map.
(range lower
upper
&
{:keys [lower-inclusive? upper-inclusive? empty?]
:or {lower-inclusive? true upper-inclusive? false empty? false}})Create a lossless Clojure representation of a PostgreSQL range. Bounds are strings or nil for unbounded; options describe inclusivity and emptiness.
Create a lossless Clojure representation of a PostgreSQL range. Bounds are strings or nil for unbounded; options describe inclusivity and emptiness.
(read-pg-array s)Arrays are of the form {1,2,3}.
Arrays are of the form {1,2,3}.
(read-pg-vector s)oidvector, int2vector, etc. are space separated lists.
oidvector, int2vector, etc. are space separated lists.
Convert a returned PGobject to a Clojure value.
Convert a returned PGobject to a Clojure value.
(rsmd md i)Convert one column of ResultSetMetaData to a map.
Convert one column of ResultSetMetaData to a map.
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 |