Liking cljdoc? Tell your friends :D

lambdaconnect-model.core


datomic-schemaclj

(datomic-schema entities-by-name)

Automatically generates schema for the Core Data xml model file the path was provided to.

Automatically generates schema for the Core Data xml model file 
the path was provided to.
sourceraw docstring

datomic-spec-for-nameclj

(datomic-spec-for-name n)
source

entities-by-nameclj

(entities-by-name model-path)

Generates a dictionary keyed with entity names and valued in entity representations for a given core data model file. These include names, attributes and relationships. See core-data-xml module for details on the data model used.

Generates a dictionary keyed with entity names and valued in entity representations for a given core data model file. 
These include names, attributes and relationships. See core-data-xml module for details on the data model used.
sourceraw docstring

read-pull-scoping-ednclj

(read-pull-scoping-edn path entities-by-name)

Read and validate scoping edn.

Read and validate scoping edn.
sourceraw docstring

scopeclj

(scope config snapshot user entities-by-name edn push?)

Takes a snapshot, a user object from DB, entities-by-name and the parsed EDN of rules. A typical invocation looks like this: (scope (d/db db/conn) user entities-by-name pull-scoping-edn)

Returns a map with db ids, something like: {:FIUser.me #{11122, 1222} :user #{2312312}}

Takes a snapshot, a user object from DB, entities-by-name and the parsed EDN of rules.
A typical invocation looks like this: 
(scope (d/db db/conn) user entities-by-name pull-scoping-edn)

Returns a map with db ids, something like:
{:FIUser.me #{11122, 1222} :user #{2312312}}
sourceraw docstring

spec-for-nameclj

(spec-for-name n)
source

specsclj

(specs entities-by-name)
(specs entities-by-name generators)

Define the specs for all the entities. The specs relate to the entities by their unqualified namespaced names, e.g. ':lambdaconnect-model.spec.json/FIUser' for the user in jsons and ':lambdaconnect-model.spec.datomic/FIUser' for the user saved to database

The generators table lists custom generators and is optional. For example: {:FIUser/gender #(s/gen #{"U", "M", "F"})}

Define the specs for all the entities. The specs relate to the entities by their unqualified namespaced names, e.g. 
':lambdaconnect-model.spec.json/FIUser' for the user in jsons and
':lambdaconnect-model.spec.datomic/FIUser' for the user saved to database

The generators table lists custom generators and is optional. For example:
{:FIUser/gender #(s/gen #{"U", "M", "F"})}
sourceraw docstring

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

× close