(datascript-schema specs)
(datascript-schema specs opts)
(datascript-schema-from-datomic-schema datomic-schema)
(datomic-schema specs)
(datomic-schema specs
{:keys [custom-type-resolver] :or {custom-type-resolver type}})
(datomic-type? x)
(find-type-via-form spec)
(find-type-via-form spec custom-type-resolver)
(find-type-via-generation spec
{:keys [custom-type-resolver value-type gen-resize]
:or {gen-resize 10}})
Returns Datomic schema for spec
. Takes a map of the following options:
:custom-type-resolver - A function that takes an object and returns the Datomic value type.
:value-type - Force the value type for a spec to be this type. This is useful
for cases where your spec generates multiple types and your code
will work with multiple types (i.e. long and double).
Returns Datomic schema for `spec`. Takes a map of the following options: :custom-type-resolver - A function that takes an object and returns the Datomic value type. :value-type - Force the value type for a spec to be this type. This is useful for cases where your spec generates multiple types and your code will work with multiple types (i.e. long and double).
(sample-types samples custom-type-resolver)
Returns a set of all the datomic types samples
contains.
Returns a set of all the datomic types `samples` contains.
(spec-form keyword-or-form)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close