Packages

case class Conn_Peer(peerConn: Connection, defaultConnProxy: ConnProxy, system: String = "") extends Conn_Jvm with Product with Serializable

Facade to Datomic connection for peer api.

Source
Conn_Peer.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, Conn_Jvm, JavaConversions, Conn, BooPicklers, Helpers, ColOps, DateHandling, RegexMatching, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Conn_Peer
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Conn_Jvm
  7. JavaConversions
  8. Conn
  9. BooPicklers
  10. Helpers
  11. ColOps
  12. DateHandling
  13. RegexMatching
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Conn_Peer(peerConn: Connection, defaultConnProxy: ConnProxy, system: String = "")

Type Members

  1. class log extends AnyRef
    Definition Classes
    Helpers
  2. class AsJava[A] extends AnyRef

    Generic class containing the asJava converter method

    Generic class containing the asJava converter method

    Definition Classes
    JavaConversions
  3. class AsJavaCollection[A] extends AnyRef

    Generic class containing the asJavaCollection converter method

    Generic class containing the asJavaCollection converter method

    Definition Classes
    JavaConversions
  4. class AsJavaDictionary[K, V] extends AnyRef

    Generic class containing the asJavaDictionary converter method

    Generic class containing the asJavaDictionary converter method

    Definition Classes
    JavaConversions
  5. class AsJavaEnumeration[A] extends AnyRef

    Generic class containing the asJavaEnumeration converter method

    Generic class containing the asJavaEnumeration converter method

    Definition Classes
    JavaConversions
  6. class AsScala[A] extends AnyRef

    Generic class containing the asScala converter method

    Generic class containing the asScala converter method

    Definition Classes
    JavaConversions
  7. implicit class Regex extends AnyRef
    Definition Classes
    RegexMatching

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit val anyPickler: Pickler[Any]
    Definition Classes
    BooPicklers
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. implicit def asJavaCollectionConverter[A](i: Iterable[A]): AsJavaCollection[A]

    Adds an asJavaCollection method that implicitly converts a Scala Iterable to an immutable Java Collection.

    Adds an asJavaCollection method that implicitly converts a Scala Iterable to an immutable Java Collection.

    Definition Classes
    JavaConversions
  7. implicit def asJavaDictionaryConverter[K, V](m: Map[K, V]): AsJavaDictionary[K, V]

    Adds an asJavaDictionary method that implicitly converts a Scala mutable Map to a Java Dictionary.

    Adds an asJavaDictionary method that implicitly converts a Scala mutable Map to a Java Dictionary.

    Definition Classes
    JavaConversions
  8. implicit def asJavaEnumerationConverter[A](i: Iterator[A]): AsJavaEnumeration[A]

    Adds an asJavaEnumeration method that implicitly converts a Scala Iterator to a Java Enumeration.

    Adds an asJavaEnumeration method that implicitly converts a Scala Iterator to a Java Enumeration.

    Definition Classes
    JavaConversions
  9. def asJavaIterable[A](i: Iterable[A]): Iterable[A]
    Definition Classes
    JavaConversions
  10. implicit def asJavaIterableConverter[A](i: Iterable[A]): AsJava[Iterable[A]]

    Adds an asJava method that implicitly converts a Scala Iterable to a Java Iterable.

    Adds an asJava method that implicitly converts a Scala Iterable to a Java Iterable.

    Definition Classes
    JavaConversions
  11. def asJavaIterator[A](i: Iterator[A]): Iterator[A]
    Definition Classes
    JavaConversions
  12. implicit def asJavaIteratorConverter[A](i: Iterator[A]): AsJava[Iterator[A]]

    Adds an asJava method that implicitly converts a Scala Iterator to a Java Iterator.

    Adds an asJava method that implicitly converts a Scala Iterator to a Java Iterator.

    Definition Classes
    JavaConversions
  13. def asScalaBuffer[A](l: List[A]): Buffer[A]
    Definition Classes
    JavaConversions
  14. implicit def asScalaBufferConverter[A](l: List[A]): AsScala[Buffer[A]]

    Adds an asScala method that implicitly converts a Java List to a Scala mutable Buffer.

    Adds an asScala method that implicitly converts a Java List to a Scala mutable Buffer.

    Definition Classes
    JavaConversions
  15. def asScalaIterator[A](i: Iterator[A]): Iterator[A]
    Definition Classes
    JavaConversions
  16. implicit def asScalaIteratorConverter[A](i: Iterator[A]): AsScala[Iterator[A]]

    Adds an asScala method that implicitly converts a Java Iterator to a Scala Iterator.

    Adds an asScala method that implicitly converts a Java Iterator to a Scala Iterator.

    Definition Classes
    JavaConversions
  17. def asScalaSet[A](s: Set[A]): Set[A]
    Definition Classes
    JavaConversions
  18. implicit def asScalaSetConverter[A](s: Set[A]): AsScala[Set[A]]

    Adds an asScala method that implicitly converts a Java Set to a Scala mutable Set.

    Adds an asScala method that implicitly converts a Java Set to a Scala mutable Set.

    Definition Classes
    JavaConversions
  19. def bigDec(arg: Any): BigDecimal
    Attributes
    protected
    Definition Classes
    Helpers
  20. implicit def boopickleSerializerDeserializer[T](implicit arg0: boopickle.Default.Pickler[T]): SerializerDeserializer[T, ByteBuffer]
    Definition Classes
    BooPicklers
  21. def bufferAsJavaList[A](b: Buffer[A]): List[A]
    Definition Classes
    JavaConversions
  22. implicit def bufferAsJavaListConverter[A](b: Buffer[A]): AsJava[List[A]]

    Adds an asJava method that implicitly converts a Scala mutable Buffer to a Java List.

    Adds an asJava method that implicitly converts a Scala mutable Buffer to a Java List.

    Definition Classes
    JavaConversions
  23. def clean(attr: String): String
    Definition Classes
    Helpers
  24. final def cleanFrom(nextTimePoint: Any)(implicit ec: ExecutionContext): Future[Unit]
    Attributes
    protected
    Definition Classes
    Conn_PeerConn_Jvm
  25. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. def collectionAsScalaIterable[A](i: Collection[A]): Iterable[A]
    Definition Classes
    JavaConversions
  27. implicit def collectionAsScalaIterableConverter[A](i: Collection[A]): AsScala[Iterable[A]]

    Adds an asScala method that implicitly converts a Java Collection to an Scala Iterable.

    Adds an asScala method that implicitly converts a Java Collection to an Scala Iterable.

    Definition Classes
    JavaConversions
  28. implicit val connProxyPickler: CompositePickler[ConnProxy]
    Definition Classes
    BooPicklers
  29. def convert(tpe: String, arg: Any): (Any) ⇒ String
    Definition Classes
    ColOps
  30. def date2datomicStr(date: Date, zoneOffset: ZoneOffset = localZoneOffset): String
    Definition Classes
    DateHandling
  31. def date2datomicStr2(date: Date, zoneOffset: ZoneOffset = localZoneOffset): String
    Definition Classes
    DateHandling
  32. def date2str(date: Date, zoneOffset: ZoneOffset = localZoneOffset): String
    Definition Classes
    DateHandling
  33. implicit val datePickler: Pickler[Date]
    Definition Classes
    BooPicklers
  34. def daylight(ms: Long): Int
    Definition Classes
    DateHandling
  35. final def db(implicit ec: ExecutionContext): Future[DatomicDb]

    Get current adhoc/test/live db.

    Get current adhoc/test/live db.

    Definition Classes
    Conn_PeerConn
  36. def debug(prefix: String, suffix: String = ""): Unit
    Attributes
    protected
    Definition Classes
    Conn
  37. val defaultConnProxy: ConnProxy
    Definition Classes
    Conn_PeerConn
  38. def dictionaryAsScalaMap[A, B](p: Dictionary[A, B]): Map[A, B]
    Definition Classes
    JavaConversions
  39. implicit def dictionaryAsScalaMapConverter[K, V](p: Dictionary[K, V]): AsScala[Map[K, V]]

    Adds an asScala method that implicitly converts a Java Dictionary to a Scala mutable Map.

    Adds an asScala method that implicitly converts a Java Dictionary to a Scala mutable Map.

    Definition Classes
    JavaConversions
  40. def double(arg: Any): String
    Attributes
    protected
    Definition Classes
    Helpers
  41. def enumerationAsScalaIterator[A](i: Enumeration[A]): Iterator[A]
    Definition Classes
    JavaConversions
  42. implicit def enumerationAsScalaIteratorConverter[A](i: Enumeration[A]): AsScala[Iterator[A]]

    Adds an asScala method that implicitly converts a Java Enumeration to a Scala Iterator.

    Adds an asScala method that implicitly converts a Java Enumeration to a Scala Iterator.

    Definition Classes
    JavaConversions
  43. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. def escStr(s: String): String
    Definition Classes
    Helpers
  45. implicit val exPickler: CompositePickler[Throwable]
    Definition Classes
    BooPicklers
  46. def expandDateStr(dateStr: String): String
    Definition Classes
    DateHandling
  47. final def f(a: Any): Any
    Attributes
    protected
    Definition Classes
    Helpers
  48. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  49. def firstNs(model: Model): String
    Definition Classes
    Helpers
  50. final def gcStorage(olderThan: Date): Unit

    Reclaim storage garbage older than a certain age.

    Reclaim storage garbage older than a certain age.

    As part of capacity planning for a Datomic system, you should schedule regular (e.g daily, weekly) calls to gcStorage.

  51. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  52. def getKwName(kw: String): String
    Definition Classes
    Helpers
  53. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  54. def iterableAsScalaIterable[A](i: Iterable[A]): Iterable[A]
    Definition Classes
    JavaConversions
  55. implicit def iterableAsScalaIterableConverter[A](i: Iterable[A]): AsScala[Iterable[A]]

    Adds an asScala method that implicitly converts a Java Iterable to a Scala Iterable.

    Adds an asScala method that implicitly converts a Java Iterable to a Scala Iterable.

    Definition Classes
    JavaConversions
  56. def jsNumber(tpe: String, v: Any): Any
    Definition Classes
    Helpers
  57. def jsOnly(method: String): MoleculeException
    Attributes
    protected
    Definition Classes
    Conn
  58. def jvmOnly(method: String): MoleculeException
    Attributes
    protected
    Definition Classes
    Conn
  59. def jvmPeerOnly(method: String): MoleculeException
    Attributes
    protected
    Definition Classes
    Conn
  60. def localOffset: String
    Definition Classes
    DateHandling
  61. def localZoneOffset: ZoneOffset
    Definition Classes
    DateHandling
  62. def mapAsJavaConcurrentMap[K, V](m: Map[K, V]): ConcurrentMap[K, V]
    Definition Classes
    JavaConversions
  63. implicit def mapAsJavaConcurrentMapConverter[K, V](m: Map[K, V]): AsJava[ConcurrentMap[K, V]]

    Adds an asJava method that implicitly converts a Scala mutable concurrent.Map to a Java ConcurrentMap.

    Adds an asJava method that implicitly converts a Scala mutable concurrent.Map to a Java ConcurrentMap.

    Definition Classes
    JavaConversions
  64. def mapAsJavaMap[K, V](m: Map[K, V]): Map[K, V]
    Definition Classes
    JavaConversions
  65. implicit def mapAsJavaMapConverter[K, V](m: Map[K, V]): AsJava[Map[K, V]]

    Adds an asJava method that implicitly converts a Scala Map to a Java Map.

    Adds an asJava method that implicitly converts a Scala Map to a Java Map.

    Definition Classes
    JavaConversions
  66. def mapAsScalaConcurrentMap[A, B](m: ConcurrentMap[A, B]): Map[A, B]
    Definition Classes
    JavaConversions
  67. implicit def mapAsScalaConcurrentMapConverter[K, V](m: ConcurrentMap[K, V]): AsScala[Map[K, V]]

    Adds an asScala method that implicitly converts a Java ConcurrentMap to a Scala mutable concurrent.Map.

    Adds an asScala method that implicitly converts a Java ConcurrentMap to a Scala mutable concurrent.Map.

    Definition Classes
    JavaConversions
  68. def mapAsScalaMap[A, B](m: Map[A, B]): Map[A, B]
    Definition Classes
    JavaConversions
  69. implicit def mapAsScalaMapConverter[K, V](m: Map[K, V]): AsScala[Map[K, V]]

    Adds an asScala method that implicitly converts a Java Map to a Scala mutable Map.

    Adds an asScala method that implicitly converts a Java Map to a Scala mutable Map.

    Definition Classes
    JavaConversions
  70. def marshallInputs(q: Query): (Seq[(Int, String, String)], Seq[(Int, String, Seq[String])], Seq[(Int, String, Seq[Seq[String]])])
    Definition Classes
    ColOps
  71. def mutableMapAsJavaMap[K, V](m: Map[K, V]): Map[K, V]
    Definition Classes
    JavaConversions
  72. implicit def mutableMapAsJavaMapConverter[K, V](m: Map[K, V]): AsJava[Map[K, V]]

    Adds an asJava method that implicitly converts a Scala mutable Map to a Java Map.

    Adds an asJava method that implicitly converts a Scala mutable Map to a Java Map.

    Definition Classes
    JavaConversions
  73. def mutableSeqAsJavaList[A](s: Seq[A]): List[A]
    Definition Classes
    JavaConversions
  74. implicit def mutableSeqAsJavaListConverter[A](b: Seq[A]): AsJava[List[A]]

    Adds an asJava method that implicitly converts a Scala mutable Seq to a Java List.

    Adds an asJava method that implicitly converts a Scala mutable Seq to a Java List.

    Definition Classes
    JavaConversions
  75. def mutableSetAsJavaSet[A](s: Set[A]): Set[A]
    Definition Classes
    JavaConversions
  76. implicit def mutableSetAsJavaSetConverter[A](s: Set[A]): AsJava[Set[A]]

    Adds an asJava method that implicitly converts a Scala mutable Set to a Java Set.

    Adds an asJava method that implicitly converts a Scala mutable Set to a Java Set.

    Definition Classes
    JavaConversions
  77. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  78. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  79. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  80. final def o(opt: Option[Any]): String
    Definition Classes
    Helpers
  81. final def os(opt: Option[Set[_]]): String
    Definition Classes
    Helpers
  82. def pad(longest: Int, shorter: Int): String
    Definition Classes
    Helpers
  83. def padS(longest: Int, str: String): String
    Definition Classes
    Helpers
  84. val peerConn: Connection
  85. def peerOnly(method: String): MoleculeException
    Attributes
    protected
    Definition Classes
    Conn
  86. def propertiesAsScalaMap(p: Properties): Map[String, String]
    Definition Classes
    JavaConversions
  87. implicit def propertiesAsScalaMapConverter(p: Properties): AsScala[Map[String, String]]

    Adds an asScala method that implicitly converts a Java Properties to a Scala mutable Map[String, String].

    Adds an asScala method that implicitly converts a Java Properties to a Scala mutable Map[String, String].

    Definition Classes
    JavaConversions
  88. final def query(datalogQuery: String, inputs: Any*)(implicit ec: ExecutionContext): Future[List[List[AnyRef]]]

    Query Datomic directly with Datalog query and optional Scala inputs.

    Query Datomic directly with Datalog query and optional Scala inputs.

    for {
      conn <- futConn // implicit Future[Conn] instance in scope
    
      // Typed tuple result from molecule
      _ <- Ns.str.int.get.map(_ ==> List(
        ("Liz", 37),
        ("Ben", 42),
      ))
    
      // Any-type result from query
      _ <- conn.query(
        "[:find  ?b ?c :where [?a :Ns/str ?b][?a :Ns/int ?c]]"
      ).map(_ ==> List(
        List("Liz", 37),
        List("Ben", 42)
      ))
    
      // Any-type result from query with input(s)
      _ <- conn.query(
        "[:find  ?b ?c :in $ ?c :where [?a :Ns/str ?b][?a :Ns/int ?c]]",
        42
      ).map(_ ==> List(
        List("Ben", 42)
      ))
    
      // See datalog queries of molecules with `inspectGet`
      _ <- Ns.str.int.inspectGet // shows Datalog query...
    } yield ()
    datalogQuery

    Datomic query string

    inputs

    Optional input(s) to query

    returns

    Future[List[List[AnyRef]]]

    Definition Classes
    Conn_JvmConn
  89. final def release(): Unit

    Request the release of resources associated with this connection.

    Request the release of resources associated with this connection.

    Method returns immediately, resources will be released asynchronously.

    This method should only be called when the entire process is no longer interested in the connection.

    Note that Datomic connections do not adhere to an acquire/use/release pattern. They are thread-safe, cached, and long lived. Many processes (e.g. application servers) will never call release.

  90. final def removeTxReportQueue(): Unit

    Removes the tx report queue associated with this connection.

  91. final def render(value: Any): String
    Definition Classes
    Helpers
  92. final def requestIndex: Boolean

    Request that a background indexing job begin immediately.

    Request that a background indexing job begin immediately.

    Background indexing will happen asynchronously. You can track indexing completion with syncIndex(long).

  93. def seqAsJavaList[A](s: Seq[A]): List[A]
    Definition Classes
    JavaConversions
  94. implicit def seqAsJavaListConverter[A](b: Seq[A]): AsJava[List[A]]

    Adds an asJava method that implicitly converts a Scala Seq to a Java List.

    Adds an asJava method that implicitly converts a Scala Seq to a Java List.

    Definition Classes
    JavaConversions
  95. def setAsJavaSet[A](s: Set[A]): Set[A]
    Definition Classes
    JavaConversions
  96. implicit def setAsJavaSetConverter[A](s: Set[A]): AsJava[Set[A]]

    Adds an asJava method that implicitly converts a Scala Set to a Java Set.

    Adds an asJava method that implicitly converts a Scala Set to a Java Set.

    Definition Classes
    JavaConversions
  97. final def sq[T](values: Seq[T]): String
    Definition Classes
    Helpers
  98. final def stmts2java(stmts: Seq[Statement]): List[List[_]]
    Definition Classes
    Conn_JvmConn
  99. def str2date(s: String, zoneOffset: ZoneOffset = localZoneOffset): Date
    Definition Classes
    DateHandling
  100. def str2zdt(s: String, zoneOffset: ZoneOffset = localZoneOffset): ZonedDateTime
    Definition Classes
    DateHandling
  101. final def sync(t: Long): Conn

    Synchronize database to have all transactions completed up to and including time t.

    Synchronize database to have all transactions completed up to and including time t.

    Sets a flag with a time t on the connection to do the synchronization on the first subsequent query. Hereafter the flag is removed.

    The synchronization guarantees to include all transactions that are complete up to and including time t. sync does not communicate with the transactor, but it can block (within the Future) if the peer/client has not yet been notified of transactions up to time t.

    A Future with the synchronized database is returned for the query to use. The future can take arbitrarily long to complete. Waiting code should specify a timeout.

    Only use sync(t) when coordination of multiple peer/client processes is required.

    If peers/clients do not share a basis t, prefer sync.

    returns

    Connection with synchronization flag set

    Definition Classes
    Conn_PeerConn
  102. final def sync: Conn

    Synchronize database to have all transactions completed up until now.

    Synchronize database to have all transactions completed up until now.

    Sets a flag on the connection to do the synchronization on the first subsequent query. Hereafter the flag is removed.

    The synchronization guarantees to include all transactions that are complete when the synchronization query is made. Before the query is executed, the connection communicates with the transactor to do the synchronization.

    A Future with the synchronized database is returned for the query to use. The future can take arbitrarily long to complete. Waiting code should specify a timeout.

    Only use sync when the following two conditions hold:

    1. coordination of multiple peer/client processes is required 2. peers/clients have no way to agree on a basis t for coordination
    returns

    Connection with synchronization flag set

    Definition Classes
    Conn_PeerConn
  103. final def syncExcise(t: Long): Conn_Peer

    Synchronize Peer database to be aware of all excisions up to time t.

    Synchronize Peer database to be aware of all excisions up to time t.

    (only implemented for Peer api)

    Sets a flag with a time t on the connection to do the synchronization on the first subsequent query. Hereafter the flag is removed.

    The synchronization guarantees a database aware of all excisions up to a time t. The synchronization does not involve calling the transactor.

    A Future with the synchronized database is returned for the query to use. The future can take arbitrarily long to complete. Waiting code should specify a timeout.

    Only use syncSchema when coordination of multiple peer/client processes is required.

    returns

    Connection with synchronization flag set

  104. final def syncIndex(t: Long): Conn_Peer

    Synchronize Peer database to have been indexed through time t.

    Synchronize Peer database to have been indexed through time t.

    (only implemented for Peer api)

    Sets a flag with a time t on the connection to do the synchronization on the first subsequent query. Hereafter the flag is removed.

    The synchronization guarantees a database that has been indexed through time t. The synchronization does not involve calling the transactor.

    A Future with the synchronized database is returned for the query to use. The future can take arbitrarily long to complete. Waiting code should specify a timeout.

    Only use syncIndex when coordination of multiple peer/client processes is required.

    returns

    Peer Connection with synchronization flag set

  105. final def syncSchema(t: Long): Conn_Peer

    Synchronize Peer database to be aware of all schema changes up to time t.

    Synchronize Peer database to be aware of all schema changes up to time t.

    (only implemented for Peer api)

    Sets a flag with a time t on the connection to do the synchronization on the first subsequent query. Hereafter the flag is removed.

    The synchronization guarantees a database aware of all schema changes up to time t. The synchronization does not involve calling the transactor.

    A Future with the synchronized database is returned for the query to use. The future can take arbitrarily long to complete. Waiting code should specify a timeout.

    Only use syncSchema when coordination of multiple peer/client processes is required.

    returns

    Connection with synchronization flag set

  106. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  107. val system: String
  108. def testDb(db: DatomicDb_Peer): Unit
    Attributes
    protected
  109. final def testDbAsOf(d: Date)(implicit ec: ExecutionContext): Future[Unit]

    Use test database as of date.

    Use test database as of date.

    d

    Date

    Definition Classes
    Conn_JvmConn
  110. final def testDbAsOf(txR: TxReport)(implicit ec: ExecutionContext): Future[Unit]

    Use test database as of transaction report.

    Use test database as of transaction report.

    txR

    Transaction report

    Definition Classes
    Conn_JvmConn
  111. final def testDbAsOf(t: Long)(implicit ec: ExecutionContext): Future[Unit]

    Use test database as of time t / tx id.

    Use test database as of time t / tx id.

    t

    Long Time t or tx id

    Definition Classes
    Conn_JvmConn
  112. final def testDbAsOfNow(implicit ec: ExecutionContext): Future[Unit]

    Use test database as of now.

    Use test database as of now.

    Definition Classes
    Conn_PeerConn
  113. final def testDbSince(txR: TxReport)(implicit ec: ExecutionContext): Future[Unit]

    Use test database since transaction report.

    Use test database since transaction report.

    txR

    Transaction report

    Definition Classes
    Conn_PeerConn
  114. final def testDbSince(d: Date)(implicit ec: ExecutionContext): Future[Unit]

    Use test database since date.

    Use test database since date.

    d

    Date

    Definition Classes
    Conn_PeerConn
  115. final def testDbSince(t: Long)(implicit ec: ExecutionContext): Future[Unit]

    Use test database since time t.

    Use test database since time t.

    t

    Long

    Definition Classes
    Conn_PeerConn
  116. final def testDbWith(txDataJava: List[List[_]])(implicit ec: ExecutionContext): Future[Unit]

    Use test database with temporary raw Java transaction data.

  117. final def testDbWith(txMolecules: Future[Seq[Statement]]*)(implicit ec: ExecutionContext): Future[Unit]

    Use test database with temporary transaction statements.

    Use test database with temporary transaction statements.

    Transaction statements can be supplied from a molecule:

    for {
      conn <- futConn // implicit Future[Conn] instance in scope
    
      // Live data
      benId = Person.name("Ben").save.map(_.eid)
    
      // Use temporary db with statements of one or more tested transactions
      _ <- conn.testDbWith(
        Person.name("liz").getSaveStmts,
        benId.getRetractStmts
        // more...
      )
    
      // Query using temporary database
      _ <- Person.name.get.map(_ ==> List("Liz"))
    
      // Discard test db and go back to live db
      _ = conn.useLiveDb()
    
      // Query using unchanged live data
      _ <- Person.name.get.map(_ ==> List("Ben"))
    } yield ()
    txMolecules

    List of List of transaction Statement's

    Definition Classes
    Conn_PeerConn
  118. def thousands(i: Long): String
    Definition Classes
    Helpers
  119. final def time(n: Int, prev: Int = 0): Unit
    Attributes
    protected
    Definition Classes
    Helpers
  120. final def transact(javaStmts: List[_])(implicit ec: ExecutionContext): Future[TxReport]

    Transact java statements

    Transact java statements

    Only works on jvm platform.

    returns

    Future with TxReport

    Definition Classes
    Conn_JvmConn
  121. final def transact(stmtsReader: Reader)(implicit ec: ExecutionContext): Future[TxReport]

    Transact statements from a java.util.Reader

    Transact statements from a java.util.Reader

    Only works on jvm platform.

    stmtsReader

    java.io.Reader

    returns

    Future with TxReport

    Definition Classes
    Conn_JvmConn
  122. final def transact(edn: String)(implicit ec: ExecutionContext): Future[TxReport]

    Transact EDN data string

    Transact EDN data string

    edn

    EDN transaction data string

    ec

    ExecutionContext for Future

    returns

    Future with TxReport

    Definition Classes
    Conn_JvmConn
  123. def truncateDateStr(dateStr: String): String
    Definition Classes
    DateHandling
  124. final def tupleToSeq(arg: Any): Seq[Any]
    Attributes
    protected
    Definition Classes
    Helpers
  125. final def txReportQueue: TxReportQueue

    Gets the single transaction report queue associated with this connection, creating it if necessary.

    Gets the single transaction report queue associated with this connection, creating it if necessary.

    The transaction report queue receives reports from all transactions in the system. Objects on the queue have the same keys as returned by transact(java.util.List).

    The returned queue may be consumed from more than one thread.

    Note that the returned queue does not block producers, and will consume memory until you consume the elements from it. Reports will be added to the queue at some point after the db has been updated.

    If this connection originated the transaction, the transaction future will be notified first, before a report is placed on the queue.

    returns

    TxReportQueue

  126. def unescStr(s: String): String
    Definition Classes
    Helpers
  127. final def untupled(rawData: Iterable[Seq[Any]]): Iterable[Seq[Any]]
    Definition Classes
    Helpers
  128. implicit val uriPickler: Pickler[URI]
    Definition Classes
    BooPicklers
  129. final def useLiveDb(): Unit

    Get out of test mode and back to live db.

    Get out of test mode and back to live db.

    Definition Classes
    Conn_PeerConn
  130. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  131. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  132. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  133. def zone: ZoneId
    Definition Classes
    DateHandling

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Conn_Jvm

Inherited from JavaConversions

Inherited from Conn

Inherited from BooPicklers

Inherited from Helpers

Inherited from ColOps

Inherited from DateHandling

Inherited from RegexMatching

Inherited from AnyRef

Inherited from Any

Ungrouped