Packages

  • package root

    Documentation/API for the Molecule library - a meta DSL for the Datomic database.

    Manual | scalamolecule.org | Github | Forum

    Definition Classes
    root
  • package molecule

    Molecule library - a Scala meta-DSL for the Datomic database.

    Molecule library - a Scala meta-DSL for the Datomic database.

    See api package for various api imports to start using Molecule.

    Sub-packages

    action Actions on molecules and entities.
    api Molecule import interfaces of various arities.
    ast Internal Molecule ASTs.
    boilerplate Internal interfaces for auto-generated DSL boilerplate code.
    composition    Builder methods to compose molecules.
    exceptions Exceptions thrown by Molecule.
    expression Attribute expressions and operations.
    facade Molecule facades to Datomic.
    factory Implicit macro methods `m` to instantiate molecules from custom DSL molecule constructs.
    generic Interfaces to generic information about datoms and Datomic database.
    input Input molecules awaiting input.
    macro Internal macros generating molecule code from custom DSL molecule constructs.
    ops Internal operational helpers for transforming DSL to molecule.
    schema Schema definition DSL.
    transform Internal transformers from DSL to Model/Query/Transaction.
    util Internal Java database functions for Datomic.

    Definition Classes
    root
  • package facade

    Molecule facades to Datomic.

    Molecule facades to Datomic.

    Facades are not trying to cover all Datomic methods but rather only interfaces relevant to Molecule.

    Definition Classes
    molecule
  • package exception
    Definition Classes
    facade
  • Conn
  • Datomic
  • TxReport

trait Datomic extends AnyRef

Facade to Datomic with selected methods.

Source
Datomic.scala
See also

Manual

Linear Supertypes
AnyRef, Any
Type Hierarchy
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. Datomic
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def recreateDbFrom(schema: SchemaTransaction, identifier: String = "", protocol: String = "mem"): Conn

    Deletes existing database (!) and creates a new empty db with schema from Schema Transaction file.

    Deletes existing database (!) and creates a new empty db with schema from Schema Transaction file.

    A typical development cycle in the initial stages of creating the db schema:

    1. Edit schema definition file
    2. sbt compile to update boilerplate code in generated jars
    3. Obtain a fresh connection to new empty db with updated schema:
      implicit val conn = recreateDbFrom(YourDomainSchema)
    schema

    Auto-generated YourDomainSchema Transaction object
    (in package yourdomain.schema of generated source jar)

    identifier

    Optional String identifier to name database (default empty string creates a randomUUID)

    protocol

    Datomic protocol. Defaults to "mem" for in-memory database.

    returns

    Conn

  16. def recreateDbFromRaw(schemaData: List[_], identifier: String = "", protocol: String = "mem"): Conn

    Deletes existing database (!) and creates a new empty db with schema from schema data structure.

    Deletes existing database (!) and creates a new empty db with schema from schema data structure.

    Schema data structure is a java List of Map's of key/value pairs defining the schema.

    Can be an EDN file like the mbrainz example.

    schemaData

    java.util.List of java.util.Maps of key/values defining a Datomic schema

    identifier

    Optional String identifier to name database (default empty string creates a randomUUID)

    protocol

    Datomic protocol. Defaults to "mem" for in-memory database.

    returns

    Conn

    See also

    https://docs.datomic.com/on-prem/data-structure-literals.html

  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. def transactSchema(schema: SchemaTransaction, identifier: String, protocol: String = "mem"): Conn

    Transact schema from auto-generated schema transaction data.

    Transact schema from auto-generated schema transaction data.

    schema

    sbt-plugin auto-generated Transaction file path.to.schema.YourDomainSchema

  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Database operations

Ungrouped