Liking cljdoc? Tell your friends :D

lambdaconnect-model.core


clojure-to-jsonclj

(clojure-to-json obj entity)
(clojure-to-json obj
                 entity
                 inverse-parser-for-attribute
                 inverse-parser-for-relationship)
source

datomic-inverse-nameclj

(datomic-inverse-name rel)
source

datomic-nameclj

(datomic-name o)
source

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

json-to-clojureclj

(json-to-clojure json entity)

Converts json-based map into the one that conforms to the spec.

Converts json-based map into the one that conforms to the spec. 
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

reduce-entitiesclj

(reduce-entities scoped-entities)

Takes what 'scope' produces and aggregates all the entity types (so :NOUser.me and :NOUser.peer become :NOUser with unified ids)

Takes what 'scope' produces and aggregates all the entity types (so :NOUser.me and :NOUser.peer become :NOUser with unified ids)
sourceraw docstring

replace-inversesclj

(replace-inverses obj entity)
(replace-inverses obj entity untangle-singles)
source

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

special-attribsclj

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