Datom
-
Datom
isevent
in Datomic -
1st element: ID of the entity
- 2nd element: ID of the attribute
-
3rd element: value of the attribute
-
Penultimate element: ID of the transaction
- Last element: true (inserted), false (removed)
[
; transaction entity
#datom [13194139534332 50 #inst "2022-03-30T19:42:55.645-00:00" 13194139534332 true]
; entity 1
#datom [17592186045437 72 "The Goonies" 13194139534332 true]
#datom [17592186045437 73 "action/adventure" 13194139534332 true]
#datom [17592186045437 74 1985 13194139534332 true]
; entity 2
#datom [17592186045438 72 "Commando" 13194139534332 true]
#datom [17592186045438 73 "action/adventure" 13194139534332 true]
#datom [17592186045438 74 1985 13194139534332 true]
; entity 3
#datom [17592186045439 72 "Repo Man" 13194139534332 true]
#datom [17592186045439 73 "punk dystopia" 13194139534332 true]
#datom [17592186045439 74 1984 13194139534332 true]
]
Transaction Entity
- Transactions are perfromed using the
d/transact
- Each transaction is also an entity that has a timestamp attribute (#inst)
- After a successful run it shows the
db-before
anddb-after