Reading schema data as shapes: the map of a row schema, its column entries and their properties, the names derived from a row's, and the rewrites other namespaces read it by.
Reading schema data as shapes: the map of a row schema, its column entries and their properties, the names derived from a row's, and the rewrites other namespaces read it by.
(column-entries schema)[[column props schema] ...] of a row or insert schema as data.
[[column props schema] ...] of a row or insert schema as data.
(column-props s)Properties of a column schema, looking through [:maybe ...].
Properties of a column schema, looking through [:maybe ...].
(derived-name row-name suffix)The name of a schema derived from a row's: :pg.<schema>/<table> -> :pg.<schema>.<table>/<suffix> ("insert", "update"), string keys alike.
The name of a schema derived from a row's: :pg.<schema>/<table> -> :pg.<schema>.<table>/<suffix>
("insert", "update"), string keys alike.(entries schema)The children of a schema vector: everything after the tag, and after the property map when the second element is one.
The children of a schema vector: everything after the tag, and after the property map when the second element is one.
(entry-parts [k p s])[key props schema] of a map entry, props defaulted to {}.
[key props schema] of a map entry, props defaulted to {}.
(ident-key s)Column names as row keys: keywords for plain identifiers, strings otherwise.
Column names as row keys: keywords for plain identifiers, strings otherwise.
(merge-props s p)Schema data with properties merged in (plainly; render's with-props narrows bounds).
Schema data with properties merged in (plainly; render's with-props narrows bounds).
(non-null schema)A column schema without its [:maybe ...]; see pgmalli.core/non-null.
A column schema without its [:maybe ...]; see pgmalli.core/non-null.
Literals the database reads for the types rendered :any: what a dataset column of such a type generates (any of them, as text; the driver's own objects come back on read).
Literals the database reads for the types rendered :any: what a dataset column of such a type generates (any of them, as text; the driver's own objects come back on read).
Types a driver hands over as objects of its own (PGobject and the like): rendered :any with their :pg/type, and generated from those literals.
Types a driver hands over as objects of its own (PGobject and the like): rendered :any with their :pg/type, and generated from those literals.
(plain? s)Whether an identifier needs no quoting, so it can be a keyword.
Whether an identifier needs no quoting, so it can be a keyword.
(read-time time schema)Schema data with the time types a driver returns under :time: :instant when timestamps arrive as Instants (dates stay java.sql.Date, hence inst?), :local when timestamptz arrives as LocalDateTime, :inst when the schema is read without malli.experimental.time.
Schema data with the time types a driver returns under :time: :instant when timestamps arrive as Instants (dates stay java.sql.Date, hence inst?), :local when timestamptz arrives as LocalDateTime, :inst when the schema is read without malli.experimental.time.
(row-map schema)The [:map ...] of a row schema, looking through the [:and ...] a table with CHECKs is.
The [:map ...] of a row schema, looking through the [:and ...] a table with CHECKs is.
(row-schema? s)Row schemas carry :pg/table; their inserts do too, but closed.
Row schemas carry :pg/table; their inserts do too, but closed.
(schema-key schema-name s)A table, view or type of a schema as a registry key: :pg.<schema>/<name>, a string key when either name is not a plain identifier.
A table, view or type of a schema as a registry key: :pg.<schema>/<name>, a string key when either name is not a plain identifier.
(schema-of registry name)The schema a registry holds under a name; a name it does not hold is an error naming the ones it does.
The schema a registry holds under a name; a name it does not hold is an error naming the ones it does.
(schemas-of registry)The name -> schema map of a registry: a map as it is, a malli Registry (a composite one, say) through its schemas.
The name -> schema map of a registry: a map as it is, a malli Registry (a composite one, say) through its schemas.
(table-key table)"public.users" -> :pg.public/users: schema-key over a qualified name.
"public.users" -> :pg.public/users: schema-key over a qualified name.
(type-name p)The type of a column schema without its typmod or array brackets: "bit(8)[]" -> "bit".
The type of a column schema without its typmod or array brackets: "bit(8)[]" -> "bit".
(without-gen schema)Schema data without the generation hints the registry added when it was loaded.
Schema data without the generation hints the registry added when it was loaded.
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 |