PostgreSQL's types as pgmalli supports them: one entry per type, keyed by the name format_type prints (what a column's :pg/type holds, without a schema or typmod).
:aliases other names of the type (pg_type's typname, a cast's spelling) :schema the malli schema of a value; :any for a type the driver hands over as an object of its own :eval the casts pgmalli.impl.eval computes: :integer (with :range), :exact, :float, :text, :json, :temporal (a date, time, timestamp or interval) :typmod what the typmod n of a column bounds: :max-length (varchar(n), char(n)), :bits (bit(n): exactly n), :max-bits (bit varying(n)) :gen how a value is generated when the schema alone does not: :bits (0s and 1s) :literals values as text the database reads, generated for an :any column :cast the type a string (or Duration) value is cast to on insert: the driver sends a string as varchar, which the database converts to the string types alone; an array's elements are cast to :array-cast, else :cast, else the type itself :read what pgjdbc returns instead of :schema's values: a schema, :bit (a Boolean for bit(1), else a PGobject), :or-double (a Double for NaN) :extension the extension that adds the type, outside pg_catalog
unsupported lists the types pgmalli has no entry for yet, each with why. pgmalli.upstream-test checks every type of pg_catalog and of the extensions PostgreSQL ships is in one of them.
PostgreSQL's types as pgmalli supports them: one entry per type, keyed by the name
format_type prints (what a column's :pg/type holds, without a schema or typmod).
:aliases other names of the type (pg_type's typname, a cast's spelling)
:schema the malli schema of a value; :any for a type the driver hands over as an
object of its own
:eval the casts pgmalli.impl.eval computes: :integer (with :range), :exact, :float,
:text, :json, :temporal (a date, time, timestamp or interval)
:typmod what the typmod n of a column bounds: :max-length (varchar(n), char(n)),
:bits (bit(n): exactly n), :max-bits (bit varying(n))
:gen how a value is generated when the schema alone does not: :bits (0s and 1s)
:literals values as text the database reads, generated for an :any column
:cast the type a string (or Duration) value is cast to on insert: the driver sends a
string as varchar, which the database converts to the string types alone; an
array's elements are cast to :array-cast, else :cast, else the type itself
:read what pgjdbc returns instead of :schema's values: a schema, :bit (a Boolean
for bit(1), else a PGobject), :or-double (a Double for NaN)
:extension the extension that adds the type, outside pg_catalog
unsupported lists the types pgmalli has no entry for yet, each with why. pgmalli.upstream-test
checks every type of pg_catalog and of the extensions PostgreSQL ships is in one of them.(by-keyword pred){name entry} of the types whose entry satisfies pred, every name and alias spelt as pgmalli.impl.expr spells a cast's type (:double-precision).
{name entry} of the types whose entry satisfies pred, every name and alias spelt as
pgmalli.impl.expr spells a cast's type (:double-precision).(entry type-name)The entry of a type, by its name or an alias (the :name it is keyed by added); nil for another type.
The entry of a type, by its name or an alias (the :name it is keyed by added); nil for another type.
(json? type-name)Whether a column of the type holds a JSON document.
Whether a column of the type holds a JSON document.
(keywords pred)The names by-keyword gives.
The names by-keyword gives.
(known? type-name type-schema)Whether a column type has an entry: a pg_catalog type in pg_catalog (type-schema nil or "pg_catalog"), an extension's in whatever schema the extension went to.
Whether a column type has an entry: a pg_catalog type in pg_catalog (type-schema nil or "pg_catalog"), an extension's in whatever schema the extension went to.
The types of pg_catalog and of the extensions PostgreSQL ships that have no entry yet, with why: what to add next. A column of one is :any, listed in :unrendered, and generates no value.
The types of pg_catalog and of the extensions PostgreSQL ships that have no entry yet, with why: what to add next. A column of one is :any, listed in :unrendered, and generates no value.
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 |