Liking cljdoc? Tell your friends :D

datomic-schema.schema


dbfncljmacro

(dbfn name params partition & code)
source

dbfns->datomicclj

(dbfns->datomic & dbfn)
source

defdbfncljmacro

(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))
sourceraw docstring

field->datomicclj

(field->datomic basename
                part
                {:keys [gen-all? index-all?]}
                acc
                [fieldname [type opts]])
source

fieldscljmacro

(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}]}}
sourceraw docstring

generate-partsclj

(generate-parts partlist)
source

generate-schemaclj

(generate-schema schema)
(generate-schema schema {:keys [gen-all? index-all?] :as opts})
source

get-enumsclj

(get-enums basens part enums)
source

partclj

(part nm)
source

part->datomicclj

(part->datomic acc part)
source

schemacljmacro

(schema nm & maps)
source

schema*clj

(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
sourceraw docstring

schema->datomicclj

(schema->datomic opts acc schema)
source

unique-mappingclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close