(defdbfn name params partition & code)
Define a datomic database function. All calls to datomic api's should be namespaced with datomic.api/ and you cannot use your own namespaces (since the function runs inside datomic)
This defines a locally namespaced function as well - which is useful for testing.
Your first parameter needs to always be 'db'.
You'll need to commit the actual function's meta into your datomic instance by calling (d/transact (meta myfn))
Define a datomic database function. All calls to datomic api's should be namespaced with datomic.api/ and you cannot use your own namespaces (since the function runs inside datomic) This defines a locally namespaced function as well - which is useful for testing. Your first parameter needs to always be 'db'. You'll need to commit the actual function's meta into your datomic instance by calling (d/transact (meta myfn))
(field->datomic basename
part
{:keys [gen-all? index-all?]}
acc
[fieldname [type opts]])
(fields & fielddefs)
Simply a helper for converting (fields [name :string :indexed]) into {:fields {"name" [:string #{:indexed}]}}
Simply a helper for converting (fields [name :string :indexed]) into {:fields {"name" [:string #{:indexed}]}}
(generate-schema schema)
(generate-schema schema {:keys [gen-all? index-all?] :as opts})
(schema* name maps)
Simply merges several maps into a single schema definition and add one or two helper properties
Simply merges several maps into a single schema definition and add one or two helper properties
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close