package datomic
Content Hierarchy
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
trait
api extends Keywords with LogicImplicits with EntityOps with TxBundles with TxFunctions with GenericSchema with GenericLog with GenericAEVT with GenericAVET with GenericEAVT with GenericVAET
Molecule API to be imported into your project to use Molecule with the Datomic Peer API.
Molecule API to be imported into your project to use Molecule with the Datomic Peer API.
To start using Molecule involves 2 initial steps:- Define your data model
sbt compileyour project to let the sbt-molecule plugin generate your custom molecule DSL.
Then you can start using your DSL and create molecules by importing the api, your DSL and assign a Datomic connection to an implicit val:
import molecule.datomic.api._ // import Molecule API import molecule.datomic.peer.facade.Datomic_Peer // import system api import path.to.dsl.yourDomain._ // auto-generated custom DSL import path.to.schema.YourDomainSchema // auto-generated custom Schema Transaction data implicit val conn = Datomic_Peer.recreateDbFrom(YourDomainSchema) // Create molecules Person.name("Ben").age(42).save val benAge = Person.name_("Ben").age.get.head // 42 // etc..
Value Members
- object api extends api with Qm with Molecule_Factory22 with Molecule_In_1_Factory22 with Molecule_In_2_Factory22 with Molecule_In_3_Factory22 with CompositeFactory_0_22 with CompositeFactory_1_22 with CompositeFactory_2_22 with CompositeFactory_3_22

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