Liking cljdoc? Tell your friends :D

psql.types

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.
raw docstring

jsonclj

(json value)

Tag any Clojure value, including scalars and nil, as PostgreSQL json.

Tag any Clojure value, including scalars and nil, as PostgreSQL json.
sourceraw docstring

jsonbclj

(jsonb value)

Tag any Clojure value, including scalars and nil, as PostgreSQL jsonb.

Tag any Clojure value, including scalars and nil, as PostgreSQL jsonb.
sourceraw docstring

map->parametercljmultimethod

source

num->parametercljmultimethod

source

parameter-dispatch-fnclj

(parameter-dispatch-fn _ type-name)
source

pmdclj

(pmd md i)

Convert one column of ParameterMetaData to a map.

Convert one column of ParameterMetaData to a map.
sourceraw docstring

rangeclj

(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.
sourceraw docstring

read-pg-arrayclj

(read-pg-array s)

Arrays are of the form {1,2,3}.

Arrays are of the form {1,2,3}.
sourceraw docstring

read-pg-vectorclj

(read-pg-vector s)

oidvector, int2vector, etc. are space separated lists.

oidvector, int2vector, etc. are space separated lists.
sourceraw docstring

read-pgobjectcljmultimethod

Convert a returned PGobject to a Clojure value.

Convert a returned PGobject to a Clojure value.
sourceraw docstring

rsmdclj

(rsmd md i)

Convert one column of ResultSetMetaData to a map.

Convert one column of ResultSetMetaData to a map.
sourceraw docstring

vec->parametercljmultimethod

source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close