Helpers for defining columns. All functions take varargs that can include:
e.g. (s/text :required :unique {:extra-schema ...})
Helpers for defining columns. All functions take varargs that can include:
- flags: :unique, :required, and/or :index in any order
- followed by a map of additional options
e.g. (s/text :required :unique {:extra-schema ...})Short-hand for {:optional true}. Can be used in Malli schemas.
Short-hand for {:optional true}. Can be used in Malli schemas.
(blob & args)Returns a map with {:type :blob, ...}
Returns a map with {:type :blob, ...}
(bool & args)Returns a map with {:type :boolean, ...}
Returns a map with {:type :boolean, ...}
(edn extra-schema & args)Returns a map with {:type :edn, :extra-schema extra-schema, ...}
Returns a map with {:type :edn, :extra-schema extra-schema, ...}
(enum enum-values & args)Returns a map with {:type :enum, :enum-values enum-values, ...}
Returns a map with {:type :enum, :enum-values enum-values, ...}
(inst & args)Returns a map with {:type :inst, ...}
Returns a map with {:type :inst, ...}
(int & args)Returns a map with {:type :int, ...}
Returns a map with {:type :int, ...}
Short-hand for {:type :uuid :primary-key true}
Short-hand for {:type :uuid :primary-key true}
(real & args)Returns a map with {:type :real, ...}
Returns a map with {:type :real, ...}
(ref target & args)Returns a map with {:ref target, :type :uuid, ...}
Returns a map with {:ref target, :type :uuid, ...}
(text & args)Returns a map with {:type :text, ...}
Returns a map with {:type :text, ...}
(uuid & args)Returns a map with {:type :uuid, ...}
Returns a map with {:type :uuid, ...}
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 |