The schema types pgmalli registers for PostgreSQL's own: the CHECK types, a bytea of bounded length and the bounded numbers, with the ranges the integer types hold.
The schema types pgmalli registers for PostgreSQL's own: the CHECK types, a bytea of bounded length and the bounded numbers, with the ranges the integer types hold.
[:pg/bytes {:min n :max n}]: a byte array of bounded length, generated as such (malli's bytes? has no length).
[:pg/bytes {:min n :max n}]: a byte array of bounded length, generated as such (malli's bytes?
has no length).[:pg/check expr]: a row passes when the CHECK expression data does (pgmalli.impl.eval). A column missing from the row is NULL, or its value in the :pg/defaults property.
[:pg/check expr]: a row passes when the CHECK expression data does (pgmalli.impl.eval). A column missing from the row is NULL, or its value in the :pg/defaults property.
[:pg/check-value expr]: a domain CHECK, the value standing for VALUE.
[:pg/check-value expr]: a domain CHECK, the value standing for VALUE.
The range each integer type pgmalli registers holds (a bigint is exactly a long, so it is :int).
The range each integer type pgmalli registers holds (a bigint is exactly a long, so it is :int).
[:pg/numeric {:precision p :scale s}]: a BigDecimal a numeric(p, s) column stores: rounded to s places (half up, as PostgreSQL rounds on the way in), fewer than p - s digits before the point. s may exceed p, or be negative, as PostgreSQL allows.
[:pg/numeric {:precision p :scale s}]: a BigDecimal a numeric(p, s) column stores: rounded to
s places (half up, as PostgreSQL rounds on the way in), fewer than p - s digits before the
point. s may exceed p, or be negative, as PostgreSQL allows.The schema types pgmalli registers, by name.
The schema types pgmalli registers, by name.
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 |