trait TxBundles extends AnyRef
- Grouped
- Alphabetic
- By Inheritance
- TxBundles
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
inspectTransactBundle(stmtss: Seq[Seq[Statement]]*)(implicit conn: Conn): Unit
Inspect transaction bundle statements
Add transaction statements from one or more molecule actions toinspectTransactto see the bundled transaction statements.Inspect transaction bundle statements
Add transaction statements from one or more molecule actions toinspectTransactto see the bundled transaction statements.inspectTransact( // retract e1.getRetractTx, // save Ns.int(4).getSaveTx, // insert Ns.int.getInsertTx(List(5, 6)), // update Ns(e2).int(20).getUpdateTx ) // Prints transaction data to output: /* ## 1 ## TxReport ======================================================================== 1 ArrayBuffer( 1 List( 1 :db/retractEntity 17592186045445) 2 List( 1 :db/add #db/id[:db.part/user -1000247] :Ns/int 4 Card(1)) 3 List( 1 :db/add #db/id[:db.part/user -1000252] :Ns/int 5 Card(1)) 4 List( 1 :db/add #db/id[:db.part/user -1000253] :Ns/int 6 Card(1)) 5 List( 1 :db/add 17592186045446 :Ns/int 20 Card(1))) ------------------------------------------------ 2 List( 1 1 added: true , t: 13194139534345, e: 13194139534345, a: 50, v: Wed Nov 14 23:38:15 CET 2018 2 2 added: false, -t: 13194139534345, -e: 17592186045445, -a: 64, -v: 1 3 3 added: true , t: 13194139534345, e: 17592186045450, a: 64, v: 4 4 4 added: true , t: 13194139534345, e: 17592186045451, a: 64, v: 5 5 5 added: true , t: 13194139534345, e: 17592186045452, a: 64, v: 6 6 6 added: true , t: 13194139534345, e: 17592186045446, a: 64, v: 20 7 added: false, -t: 13194139534345, -e: 17592186045446, -a: 64, -v: 2) ======================================================================== */
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
transactBundle(stmtss: Seq[Seq[Statement]]*)(implicit conn: Conn): TxReport
Transact bundled transaction statements
Supply transaction statements of one or more molecule actions to perform a single atomic transaction.Transact bundled transaction statements
Supply transaction statements of one or more molecule actions to perform a single atomic transaction.transact( // retract entity e1.getRetractTx, // save new entity Ns.int(4).getSaveTx, // insert multiple new entities Ns.int.getInsertTx(List(5, 6)), // update entity Ns(e2).int(20).getUpdateTx )
-
def
transactBundleAsync(stmtss: Seq[Seq[Statement]]*)(implicit conn: Conn, ec: ExecutionContext): Future[TxReport]
Asynchronously transact bundled transaction statements
Asynchronously transact bundled transaction statements
Supply transaction statements of one or more molecule actions to asynchronously transact a single atomic transaction.
Await.result( transactAsync( e1.getRetractTx, Ns.int(4).getSaveTx, Ns.int.getInsertTx(List(5, 6)), Ns(e2).int(20).getUpdateTx ) map { bundleTx => Ns.int.getAsync map { queryResult => queryResult === List(3, 4, 5, 6, 20) } }, 2.seconds ) -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()

Documentation/API for the Molecule library - a meta DSL for the Datomic database.
scalamolecule.org | Github | Forum