Liking cljdoc? Tell your friends :D

Coercion

While retrieving the data from the database, HoneyEQL coerce the return value to the corresponding JVM type as mentioned in the below table.

TypePostgresMySQL
java.lang.Longinteger, int, int2 int4, smallint, smallserial, serial, serial2, serial4, bigint,int8,bigserial,serial8SMALLINT, MEDIUMINT, INT, TINYINT UNSIGNED, SMALLINT UNSIGNED, MEDIUMINT UNSIGNED, YEAR, INT UNSIGNED, BIGINT
java.math.BigDecimalreal, float4, float8, double precision,numeric,decimalREAL, FLOAT, DOUBLE, DECIMAL, NUMERIC
java.lang.Stringbit, bit varying, char, character varying, varchar, citext, bpchar, macaddr8, text, moneyCHAR, VARCHAR, TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT, ENUM, SET, BINARY, VARBINARY, TINYBLOB, BLOB, LONGBLOB, BIT
java.lang.BooleanbooleanTINYINT(1), BIT(1)
java.util.UUIDuuid--
java.time.LocalDatedateDATE
java.time.LocalTimetime, time without time zoneTIME
java.time.OffsetTimetimetz, time with time zone--
java.time.LocalDateTimetimestamp, timestamp without time zoneDATETIME, TIMESTAMP
java.time.OffsetDateTimetimestamptz, timestamp with time zone--

Can you improve this documentation?Edit on GitHub

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