trait Datomic extends AnyRef
- Grouped
- Alphabetic
- By Inheritance
- Datomic
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- 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:- Edit schema definition file
sbt compile
to update boilerplate code in generated jars- 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
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Documentation/API for the Molecule library - a meta DSL for the Datomic database.
Manual | scalamolecule.org | Github | Forum