Liking cljdoc? Tell your friends :D

io.randomseed.utils.db.types

Opinionated database type conversions.

Opinionated database type conversions.
raw docstring

add-all-accessorsclj

(add-all-accessors)

Adds all opinionated readers and setters by calling add-all-readers and add-all-setters.

Adds all opinionated readers and setters by calling `add-all-readers` and `add-all-setters`.
sourceraw docstring

add-all-readersclj

(add-all-readers)

Adds all opinionated readers by calling add-reader-date and add-reader-blob.

Adds all opinionated readers by calling `add-reader-date` and `add-reader-blob`.
sourceraw docstring

add-all-settersclj

(add-all-setters)

Adds all opinionated setters by calling add-setter-date and add-setter-ip-address.

Adds all opinionated setters by calling `add-setter-date` and `add-setter-ip-address`.
sourceraw docstring

add-reader-blobclj

(add-reader-blob)

Extends next.jdbc.result-set/ReadableColumn protocol to support binary large object (BLOB) conversions, so java.sql.Blob data are converted to an array of bytes (bytes[]).

Extends `next.jdbc.result-set/ReadableColumn` protocol to support binary large
object (BLOB) conversions, so `java.sql.Blob` data are converted to an array of
bytes (`bytes[]`).
sourceraw docstring

add-reader-dateclj

(add-reader-date)

Extends next.jdbc.result-set/ReadableColumn protocol to support date/time conversions so java.sql.Date data are passed as-is and java.sql.Timestamp data are converted to java.sql.Timestamp.

Extends `next.jdbc.result-set/ReadableColumn` protocol to support date/time
conversions so `java.sql.Date` data are passed as-is and `java.sql.Timestamp`
data are converted to `java.sql.Timestamp`.
sourceraw docstring

add-setter-dateclj

(add-setter-date)

Extends next.jdbc.prepare/SettableParameter protocol to support date/time conversions so java.sql.Date data are saved using .setDate method and java.sql.Timestamp, java.time.Instant, java.time.ZonedTime, java.time.LocalDate, java.time.LocalDateTime and java.util.Date are saved with .setTimestamp. Also note that java.time.Instant, java.time.ZonedDateTime and java.util.Date are explicitly converted to UTC before saving.

Extends `next.jdbc.prepare/SettableParameter` protocol to support date/time
conversions so `java.sql.Date` data are saved using `.setDate` method and
`java.sql.Timestamp`, `java.time.Instant`, `java.time.ZonedTime`,
`java.time.LocalDate`, `java.time.LocalDateTime` and `java.util.Date` are saved with
`.setTimestamp`. Also note that `java.time.Instant`, `java.time.ZonedDateTime` and
`java.util.Date` are explicitly converted to UTC before saving.
sourceraw docstring

add-setter-ip-addressclj

(add-setter-ip-address)

Extends next.jdbc.prepare/SettableParameter protocol to support IP address conversions so inet.ipaddr.ipv4.IPv4Address data are converted to inet.ipaddr.ipv6.IPv6Address, then to an array of bytes and then saved using .setBytes method. Similarly, inet.ipaddr.ipv6.IPv6Address data are converted to an array of bytes and then saved with .setBytes.

Extends `next.jdbc.prepare/SettableParameter` protocol to support IP address
conversions so `inet.ipaddr.ipv4.IPv4Address` data are converted to `inet.ipaddr.ipv6.IPv6Address`,
then to an array of bytes and then saved using `.setBytes` method. Similarly,
`inet.ipaddr.ipv6.IPv6Address` data are converted to an array of bytes and then saved with `.setBytes`.
sourceraw docstring

add-setter-uuidclj

(add-setter-uuid)

Extends next.jdbc.prepare/SettableParameter protocol to support UUID conversions so java.util.UUID data are converted to an array of bytes and then saved using .setBytes method.

Extends `next.jdbc.prepare/SettableParameter` protocol to support UUID
conversions so `java.util.UUID` data are converted to an array of bytes and then
saved using `.setBytes` method.
sourceraw docstring

opts-mapclj

source

opts-simple-mapclj

source

opts-simple-vecclj

source

opts-slashed-mapclj

source

opts-slashed-vecclj

source

opts-vecclj

source

to-lispclj

source

to-lisp-simpleclj

source

to-lisp-slashedclj

source

to-snakeclj

source

to-snake-simpleclj

source

to-snake-slashedclj

source

utc-time-zoneclj

source

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

× close