January 2018
Intermediate to advanced
336 pages
7h 56m
English
Each database in Datomic has an associated schema that defines all the attributes that can be associated with the entities. It also defines the type of value each attribute can contain. The attributes are themselves transacted as datoms, that is, they are also considered as entities with associated attributes that are defined by Datomic. The attributes supported by Datomic for schema definitions are as shown in the following table:
| Attribute | Type | Description |
|
:db/ident |
Namespaced keyword |
Unique name of an attribute in the form <namespace>[.<nested-namespace>]/<name>, such as :order/name. Namespaces are useful to prevent collisions but they can be omitted. :db is a restricted namespace used by Datomic internally. |
| :db/valueType ... |
Read now
Unlock full access