datomisca

Datomic

Related Doc: package datomisca

object Datomic extends PeerOps with TransactOps with DatomicFacilities with QueryExecutor with ExtraMacros

Main object containing:

Source
Datomic.scala
Linear Supertypes
ExtraMacros, QueryExecutor, TypedQueryExecutor, DatomicFacilities, TransactOps, PeerOps, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Datomic
  2. ExtraMacros
  3. QueryExecutor
  4. TypedQueryExecutor
  5. DatomicFacilities
  6. TransactOps
  7. PeerOps
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. macro def KW(str: String): clojure.lang.Keyword

    Parse the string representation of a Clojure keyword into a Keyword object.

    Parse the string representation of a Clojure keyword into a Keyword object.

    Implemented as a macro that generates a keyword literal at compile time.

    val kw = KW(":namespace/name")
    str

    a Clojure keyword as a string

    returns

    a Clojure Keyword

    Definition Classes
    ExtraMacros
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def connect(uri: String): Connection

    Builds a Connection from URI

    Builds a Connection from URI

    In order to benefit from Datomic facilities based on implicit Connection, you should put a connection in an implicit val in your scope. You can also use Connection explicitly.

    implicit val conn = Datomic.connection("datomic:mem://mydatabase")
    uri

    The URI of Datomic DB

    returns

    Connection

    Definition Classes
    PeerOps
  8. def createDatabase(uri: String): Boolean

    Creates a new database using uri

    Creates a new database using uri

    uri

    the Uri of the DB

    returns

    true/false for success

    Definition Classes
    PeerOps
  9. def database()(implicit conn: Connection): Database

    The database associated to the implicit connection

    The database associated to the implicit connection

    implicit conn = Datomic.connect("datomic:mem://mydatabase")
    database.transact(...)
    Definition Classes
    PeerOps
  10. def deleteDatabase(uri: String): Boolean

    Deletes an existing database using uri

    Deletes an existing database using uri

    uri

    the URI of the DB

    returns

    true/false for success

    Definition Classes
    PeerOps
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fromDatomic[DD <: AnyRef, T](dd: DD)(implicit fd: FromDatomicInj[DD, T]): T

    converts a DatomicData to a type given there is the right implicit in the scope

    converts a DatomicData to a type given there is the right implicit in the scope

    val l: String = Datomic.fromDatomic("toto")
    val s: Long = Datomic.fromDatomic(5L: java.lang.Long)
    Definition Classes
    DatomicFacilities
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def list(dw: DWrapper*): List[AnyRef]

    Creates a heterogenous, untyped java.util.List from simple types using DWrapper implicit conversion

    Creates a heterogenous, untyped java.util.List from simple types using DWrapper implicit conversion

    val addPartOp = Datomic.list("toto", 3L, "tata")
    Definition Classes
    DatomicFacilities
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def parseOps(ops: String): Try[Seq[TxData]]

    Runtime-based helper to create multiple Datomic Operations (Add, Retract, RetractEntity, AddToEntity) compiled from a Clojure String.

    Runtime-based helper to create multiple Datomic Operations (Add, Retract, RetractEntity, AddToEntity) compiled from a Clojure String. This is not a Macro so no variable in string and it is evaluated at runtime

    You can then directly copy some Clojure code in a String and get it parsed at runtime. This is why it returns a Try[Seq[TxData]] It also manages comments.

    val ops = Datomic.parseOps("""
    ;; comment blabla
      [:db/add #db/id[:db.part/user] :db/ident :character/weak]
      ;; comment blabla
      [:db/add #db/id[:db.part/user] :db/ident :character/dumb]
      [:db/add #db/id[:db.part/user] :db/ident :region/n]
      [:db/retract #db/id[:db.part/user] :db/ident :region/n]
      [:db/retractEntity 1234]
      ;; comment blabla
      {
        :db/id #db/id[:db.part/user]
        :person/name "toto, tata"
        :person/age 30
        :person/character [ :character/_weak :character/dumb-toto ]
      }
      { :db/id #db/id[:db.part/user], :person/name "toto",
        :person/age 30, :person/character [ :character/_weak, :character/dumb-toto ]
      }
    """)
    returns

    a sequence of operations or an error

    Definition Classes
    DatomicFacilities
  23. def part[T](entityId: T)(implicit ev: AsPermanentEntityId[T]): Long

    Returns the partition of this entity id

    Returns the partition of this entity id

    (Copied from Datomic docs)

    entityId
    returns

    the partition of the given entity id

    Definition Classes
    PeerOps
  24. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, In12, In13, In14, In15, In16, In17, In18, In19, In20, In21, In22, Out](query: TypedQuery22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11, in12: In12, in13: In13, in14: In14, in15: In15, in16: In16, in17: In17, in18: In18, in19: In19, in20: In20, in21: In21, in22: In22)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: ToDatomicCast[In12], arg12: ToDatomicCast[In13], arg13: ToDatomicCast[In14], arg14: ToDatomicCast[In15], arg15: ToDatomicCast[In16], arg16: ToDatomicCast[In17], arg17: ToDatomicCast[In18], arg18: ToDatomicCast[In19], arg19: ToDatomicCast[In20], arg20: ToDatomicCast[In21], arg21: ToDatomicCast[In22], arg22: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  25. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, In12, In13, In14, In15, In16, In17, In18, In19, In20, In21, Out](query: TypedQuery21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11, in12: In12, in13: In13, in14: In14, in15: In15, in16: In16, in17: In17, in18: In18, in19: In19, in20: In20, in21: In21)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: ToDatomicCast[In12], arg12: ToDatomicCast[In13], arg13: ToDatomicCast[In14], arg14: ToDatomicCast[In15], arg15: ToDatomicCast[In16], arg16: ToDatomicCast[In17], arg17: ToDatomicCast[In18], arg18: ToDatomicCast[In19], arg19: ToDatomicCast[In20], arg20: ToDatomicCast[In21], arg21: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  26. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, In12, In13, In14, In15, In16, In17, In18, In19, In20, Out](query: TypedQuery20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11, in12: In12, in13: In13, in14: In14, in15: In15, in16: In16, in17: In17, in18: In18, in19: In19, in20: In20)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: ToDatomicCast[In12], arg12: ToDatomicCast[In13], arg13: ToDatomicCast[In14], arg14: ToDatomicCast[In15], arg15: ToDatomicCast[In16], arg16: ToDatomicCast[In17], arg17: ToDatomicCast[In18], arg18: ToDatomicCast[In19], arg19: ToDatomicCast[In20], arg20: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  27. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, In12, In13, In14, In15, In16, In17, In18, In19, Out](query: TypedQuery19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11, in12: In12, in13: In13, in14: In14, in15: In15, in16: In16, in17: In17, in18: In18, in19: In19)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: ToDatomicCast[In12], arg12: ToDatomicCast[In13], arg13: ToDatomicCast[In14], arg14: ToDatomicCast[In15], arg15: ToDatomicCast[In16], arg16: ToDatomicCast[In17], arg17: ToDatomicCast[In18], arg18: ToDatomicCast[In19], arg19: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  28. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, In12, In13, In14, In15, In16, In17, In18, Out](query: TypedQuery18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11, in12: In12, in13: In13, in14: In14, in15: In15, in16: In16, in17: In17, in18: In18)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: ToDatomicCast[In12], arg12: ToDatomicCast[In13], arg13: ToDatomicCast[In14], arg14: ToDatomicCast[In15], arg15: ToDatomicCast[In16], arg16: ToDatomicCast[In17], arg17: ToDatomicCast[In18], arg18: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  29. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, In12, In13, In14, In15, In16, In17, Out](query: TypedQuery17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11, in12: In12, in13: In13, in14: In14, in15: In15, in16: In16, in17: In17)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: ToDatomicCast[In12], arg12: ToDatomicCast[In13], arg13: ToDatomicCast[In14], arg14: ToDatomicCast[In15], arg15: ToDatomicCast[In16], arg16: ToDatomicCast[In17], arg17: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  30. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, In12, In13, In14, In15, In16, Out](query: TypedQuery16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11, in12: In12, in13: In13, in14: In14, in15: In15, in16: In16)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: ToDatomicCast[In12], arg12: ToDatomicCast[In13], arg13: ToDatomicCast[In14], arg14: ToDatomicCast[In15], arg15: ToDatomicCast[In16], arg16: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  31. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, In12, In13, In14, In15, Out](query: TypedQuery15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11, in12: In12, in13: In13, in14: In14, in15: In15)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: ToDatomicCast[In12], arg12: ToDatomicCast[In13], arg13: ToDatomicCast[In14], arg14: ToDatomicCast[In15], arg15: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  32. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, In12, In13, In14, Out](query: TypedQuery14[_, _, _, _, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11, in12: In12, in13: In13, in14: In14)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: ToDatomicCast[In12], arg12: ToDatomicCast[In13], arg13: ToDatomicCast[In14], arg14: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  33. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, In12, In13, Out](query: TypedQuery13[_, _, _, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11, in12: In12, in13: In13)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: ToDatomicCast[In12], arg12: ToDatomicCast[In13], arg13: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  34. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, In12, Out](query: TypedQuery12[_, _, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11, in12: In12)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: ToDatomicCast[In12], arg12: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  35. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, In11, Out](query: TypedQuery11[_, _, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10, in11: In11)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: ToDatomicCast[In11], arg11: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  36. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, In10, Out](query: TypedQuery10[_, _, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9, in10: In10)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: ToDatomicCast[In10], arg10: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  37. def q[In1, In2, In3, In4, In5, In6, In7, In8, In9, Out](query: TypedQuery9[_, _, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8, in9: In9)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: ToDatomicCast[In9], arg9: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  38. def q[In1, In2, In3, In4, In5, In6, In7, In8, Out](query: TypedQuery8[_, _, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7, in8: In8)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: ToDatomicCast[In8], arg8: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  39. def q[In1, In2, In3, In4, In5, In6, In7, Out](query: TypedQuery7[_, _, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6, in7: In7)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: ToDatomicCast[In7], arg7: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  40. def q[In1, In2, In3, In4, In5, In6, Out](query: TypedQuery6[_, _, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5, in6: In6)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: ToDatomicCast[In6], arg6: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  41. def q[In1, In2, In3, In4, In5, Out](query: TypedQuery5[_, _, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4, in5: In5)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: ToDatomicCast[In5], arg5: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  42. def q[In1, In2, In3, In4, Out](query: TypedQuery4[_, _, _, _, Out], in1: In1, in2: In2, in3: In3, in4: In4)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: ToDatomicCast[In4], arg4: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  43. def q[In1, In2, In3, Out](query: TypedQuery3[_, _, _, Out], in1: In1, in2: In2, in3: In3)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: ToDatomicCast[In3], arg3: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  44. def q[In1, In2, Out](query: TypedQuery2[_, _, Out], in1: In1, in2: In2)(implicit arg0: ToDatomicCast[In1], arg1: ToDatomicCast[In2], arg2: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  45. def q[In1, Out](query: TypedQuery1[_, Out], in1: In1)(implicit arg0: ToDatomicCast[In1], arg1: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  46. def q[In, Out](query: TypedQuery0[Out], dataSource: In)(implicit arg0: ToDatomicCast[In], arg1: QueryResultToTuple[Out]): Iterable[Out]

    Definition Classes
    TypedQueryExecutor
  47. def renameDatabase(uri: String, newName: String): Boolean

    Renames an existing database using uri

    Renames an existing database using uri

    uri

    the URI of the DB

    newName

    the new name

    returns

    true/false for success

    Definition Classes
    PeerOps
  48. def shutdown(shutdownClojure: Boolean): Unit

    Shutdown all Peer resources.

    Shutdown all Peer resources. Copied from Datomic Javadoc: This method should be called as part of clean shutdown of a JVM process. Will release all Connections, and, if shutdownClojure is true, will release Clojure resources. Programs written in Clojure can set shutdownClojure to false if they manage Clojure resources (e.g. agents) outside of Datomic; programs written in other JVM languages should typically set shutdownClojure to true.

    Definition Classes
    PeerOps
  49. def squuid(): UUID

    Constructs a semi-sequential UUID useful for creating UUIDs that don’t fragment indexes

    Constructs a semi-sequential UUID useful for creating UUIDs that don’t fragment indexes

    (Copied from Datomic docs)

    returns

    a UUID whose most signigicant 32 bits are currentTimeMillis rounded to seconds

    Definition Classes
    PeerOps
  50. def squuidTimeMillis(squuid: UUID): Long

    Get the time part of a squuid

    Get the time part of a squuid

    (Copied from Datomic docs)

    squuid

    a UUID created by squuid()

    returns

    the time in the format of System.currentTimeMillis

    Definition Classes
    PeerOps
  51. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  52. def toDatomic[T](t: T)(implicit tdc: ToDatomicCast[T]): AnyRef

    Converts any value to a DatomicData given there is the right ToDatomicCast in the scope

    Converts any value to a DatomicData given there is the right ToDatomicCast in the scope

    val s: String = Datomic.toDatomic("toto")
    val l: java.lang.Long = Datomic.toDatomic("5L")
    Definition Classes
    DatomicFacilities
  53. def toString(): String

    Definition Classes
    AnyRef → Any
  54. def toT(tx: Long): Long

    Returns the t value associated with this tx

    Returns the t value associated with this tx

    (Copied from Datomic docs)

    tx

    a transaction entity id

    returns

    a database basis T point

    Definition Classes
    PeerOps
  55. def toTx(t: Long): Long

    Returns the tx associated with this t value.

    Returns the tx associated with this t value.

    (Copied from Datomic docs)

    t

    a database basis T point

    returns

    a transaction entity id

    Definition Classes
    PeerOps
  56. def transact(ops: TxData*)(implicit connection: Connection, ex: ExecutionContext): Future[TxReport]

    Performs an Datomic async transaction with multiple operations.

    Performs an Datomic async transaction with multiple operations.

    Datomic.transact(
      AddToEntity(DId(Partition.USER))(
        person / "name" -> "toto",
        person / "age" -> 30L
      ),
      AddToEntity(DId(Partition.USER))(
        person / "name" -> "tata",
        person / "age" -> 54L
      )
    ).map{ tx =>
        ...
    }
    ops

    TxDatas

    connection

    the implicit Connection

    ex

    the implicit scala.concurrent.ExecutionContext

    returns

    A future of Transaction Report

    Definition Classes
    TransactOps
  57. def transact(ops: TraversableOnce[TxData])(implicit connection: Connection, ex: ExecutionContext): Future[TxReport]

    Performs an Datomic async transaction with multiple operations.

    Performs an Datomic async transaction with multiple operations.

    Datomic.transact(Seq(
      AddToEntity(DId(Partition.USER))(
        person / "name" -> "toto",
        person / "age" -> 30L
      ),
      AddToEntity(DId(Partition.USER))(
        person / "name" -> "tata",
        person / "age" -> 54L
      )
    )).map{ tx =>
        ...
    }
    ops

    a sequence of TxData

    connection

    the implicit Connection

    ex

    the implicit scala.concurrent.ExecutionContext

    returns

    A future of Transaction Report

    Definition Classes
    TransactOps
  58. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ExtraMacros

Inherited from QueryExecutor

Inherited from TypedQueryExecutor

Inherited from DatomicFacilities

Inherited from TransactOps

Inherited from PeerOps

Inherited from AnyRef

Inherited from Any

Ungrouped