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 point: companion artifacts, such as psql-clj-gis, add methods for their 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 point: companion artifacts, such as psql-clj-gis, add methods for their 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 values. Options describe inclusivity and emptiness.
Create a lossless Clojure representation of a PostgreSQL range. Bounds are strings or nil for unbounded values. Options describe inclusivity and emptiness.
(read-pg-array s)Arrays use the form {1,2,3}.
Arrays use the form {1,2,3}.
(read-pg-vector s)oidvector, int2vector, and similar types are space-separated lists.
oidvector, int2vector, and similar types 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 |