Liking cljdoc? Tell your friends :D

magnet.sql-utils


coll->pg-jsonbclj

(coll->pg-jsonb c)

Convert coll c into a Postgresql jsonb compatible object.

Convert coll `c` into a Postgresql jsonb compatible object.
sourceraw docstring

instant->sql-timestampclj

(instant->sql-timestamp instant)

Convert clojure.java-time/Instant instant into a SQL Timestamp

Convert clojure.java-time/Instant `instant` into a SQL Timestamp
sourceraw docstring

json->pg-jsonbclj

(json->pg-jsonb json)

Convert json string into a Postgresql jsonb compatible object. In order to persist JSON into Postgresql we need to wrap the json into a PGObject and set the "jsonb" type on it. See https://jdbc.postgresql.org/documentation/publicapi/org/postgresql/util/PGobject.html

Convert `json` string into a Postgresql jsonb compatible object.
In order to persist JSON into Postgresql we need to wrap the json
into a PGObject and set the "jsonb" type on it. See
https://jdbc.postgresql.org/documentation/publicapi/org/postgresql/util/PGobject.html
sourceraw docstring

keyword->pg-enumclj

(keyword->pg-enum kw enum-type)

Convert keyword kw into a Postgresql enum-type enum compatible object. enum-type is a string holding the name of the Postgresql enum type.

Convert keyword `kw` into a Postgresql `enum-type` enum compatible object.
`enum-type` is a string holding the name of the Postgresql enum type.
sourceraw docstring

map->pg-jsonbclj

(map->pg-jsonb m)

Convert map m into a Postgresql jsonb compatible object.

Convert map `m` into a Postgresql jsonb compatible object.
sourceraw docstring

sql-delete!clj

(sql-delete! db-spec logger table where-clause)

FIXME: document this function

FIXME: document this function
sourceraw docstring

sql-execute!clj

(sql-execute! db-spec logger sql-statement)

FIXME: document this function

FIXME: document this function
sourceraw docstring

sql-insert!clj

(sql-insert! db-spec logger table cols values)

FIXME: document this function

FIXME: document this function
sourceraw docstring

sql-insert-multi!clj

(sql-insert-multi! db-spec logger table cols values)

FIXME: document this function

FIXME: document this function
sourceraw docstring

sql-queryclj

(sql-query db-spec logger sql-statement)

FIXME: document this function

FIXME: document this function
sourceraw docstring

sql-update!clj

(sql-update! db-spec logger table set-map where-clause)

FIXME: document this function

FIXME: document this function
sourceraw docstring

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

× close