DatomicTxReport

molecule.datalog.core.facade.DatomicTxReport
case class DatomicTxReport(basisTbefore: Long, t: Long, tx: Long, txDate: Date, datoms: List[Datom], ids: List[Long])

Facade to Datomic transaction report with convenience methods to access tx meta data.

Value parameters

basisTbefore

Datomic time point t on before Db

datoms

Tx report data, a List of molecule.datalog.core.facade.Datom

ids

List of affected entity ids from transaction

t

Transaction time t. Same as basis t on after Db

tx

Transaction entity id (Long).

txDate

Transaction instant (Date).

Attributes

Source
DatomicTxReport.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
DatomicTxReport.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val id: Long

Convenience method to get single affected entity id from transaction.

Convenience method to get single affected entity id from transaction.

Often useful when you know only one entity was affected:

for {
 benId <- Person.name("Ben").map(_.id)
} yield ()

Attributes

Source
DatomicTxReport.scala