package datom
Datom meta attribute interfaces of all arities.
"Meta attributes" are special pre-defined attributes that can be combined with custom attributes in molecules to return meta data:
// Get id of Ben entity with `e` Person.e.name.get.head === (benEntityId, "Ben") // When was Ben's age updated? Using `txInstant` Person(benEntityId).age.txInstant.get.head === (42, <April 4, 2019>) // (Date) // With a history db we can access the transaction number `t` and // assertion/retraction statusses with `op` Person(benEntityId).age.t.op.getHistory === List( (41, t1, true), // age 41 asserted in transaction t1 (41, t2, false), // age 41 retracted in transaction t2 (42, t2, true) // age 42 asserted in transaction t2 )
Available meta attributes:
e
- Entity id (Long)a
- Full attribute name like ":Person/name" (String)v
- Value of Datoms (Any)t
- Transaction pointer (Long/Int)tx
- Transaction entity id (Long)txInstant
- Transaction wall clock time (java.util.Date)op
- Operation status: assertion (true) / retraction (false)
- Source
- package.scala
- See also
Tests for more generic attribute query examples.
Type Members
-
trait
Datom extends AnyRef
Base trait with generic attribute trait types shared by all arity interfaces
-
trait
Datom_0[Ns0, Ns1[_], In0[_], In1[_, _]] extends Datom
Generic attribute interface to add first generic attribute
-
trait
Datom_1[Ns1[_], Ns2[_, _], In1[_, _], In2[_, _, _], A] extends Datom
Generic attribute interface to add second generic attribute
- trait Datom_10[Ns10[_, _, _, _, _, _, _, _, _, _], Ns11[_, _, _, _, _, _, _, _, _, _, _], In10[_, _, _, _, _, _, _, _, _, _, _], In11[_, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J] extends Datom
- trait Datom_11[Ns11[_, _, _, _, _, _, _, _, _, _, _], Ns12[_, _, _, _, _, _, _, _, _, _, _, _], In11[_, _, _, _, _, _, _, _, _, _, _, _], In12[_, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K] extends Datom
- trait Datom_12[Ns12[_, _, _, _, _, _, _, _, _, _, _, _], Ns13[_, _, _, _, _, _, _, _, _, _, _, _, _], In12[_, _, _, _, _, _, _, _, _, _, _, _, _], In13[_, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L] extends Datom
- trait Datom_13[Ns13[_, _, _, _, _, _, _, _, _, _, _, _, _], Ns14[_, _, _, _, _, _, _, _, _, _, _, _, _, _], In13[_, _, _, _, _, _, _, _, _, _, _, _, _, _], In14[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M] extends Datom
- trait Datom_14[Ns14[_, _, _, _, _, _, _, _, _, _, _, _, _, _], Ns15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In14[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N] extends Datom
- trait Datom_15[Ns15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], Ns16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O] extends Datom
- trait Datom_16[Ns16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], Ns17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P] extends Datom
- trait Datom_17[Ns17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], Ns18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q] extends Datom
- trait Datom_18[Ns18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], Ns19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R] extends Datom
- trait Datom_19[Ns19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], Ns20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S] extends Datom
- trait Datom_2[Ns2[_, _], Ns3[_, _, _], In2[_, _, _], In3[_, _, _, _], A, B] extends Datom
- trait Datom_20[Ns20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], Ns21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T] extends Datom
- trait Datom_21[Ns21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], Ns22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U] extends Datom
- trait Datom_22[Ns22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], P23[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], P24[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V] extends Datom
- trait Datom_3[Ns3[_, _, _], Ns4[_, _, _, _], In3[_, _, _, _], In4[_, _, _, _, _], A, B, C] extends Datom
- trait Datom_4[Ns4[_, _, _, _], Ns5[_, _, _, _, _], In4[_, _, _, _, _], In5[_, _, _, _, _, _], A, B, C, D] extends Datom
- trait Datom_5[Ns5[_, _, _, _, _], Ns6[_, _, _, _, _, _], In5[_, _, _, _, _, _], In6[_, _, _, _, _, _, _], A, B, C, D, E] extends Datom
- trait Datom_6[Ns6[_, _, _, _, _, _], Ns7[_, _, _, _, _, _, _], In6[_, _, _, _, _, _, _], In7[_, _, _, _, _, _, _, _], A, B, C, D, E, F] extends Datom
- trait Datom_7[Ns7[_, _, _, _, _, _, _], Ns8[_, _, _, _, _, _, _, _], In7[_, _, _, _, _, _, _, _], In8[_, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G] extends Datom
- trait Datom_8[Ns8[_, _, _, _, _, _, _, _], Ns9[_, _, _, _, _, _, _, _, _], In8[_, _, _, _, _, _, _, _, _], In9[_, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H] extends Datom
- trait Datom_9[Ns9[_, _, _, _, _, _, _, _, _], Ns10[_, _, _, _, _, _, _, _, _, _], In9[_, _, _, _, _, _, _, _, _, _], In10[_, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I] extends Datom
Documentation/API for the Molecule library - a meta DSL for the Datomic database.
Manual | scalamolecule.org | Github | Forum