m
|
Molecule |
|
![]() |
Datomic® |
|
trait Person {
val name = oneString
val age = oneInt
val address = one[Address]
}
trait Address {
val street = oneString
}
> cd yourProjectRoot
> sbt compile
Read more...
Person.name.age.Address.street insert
List(
("Lisa", 20, "Broadway"),
("John", 22, "Fifth Avenue")
)
Query data
Person.name.age.Address.street.get ===
List(
("Lisa", 20, "Broadway"),
("John", 22, "Fifth Avenue")
)
⟶
|
Tx statements |
⟶
|
Datomic |
⟵
|
Tx report |
⟵
|
|
⟶
|
Datalog |
⟶
|
|
⟵
|
Typed data |
⟵
|
git clone https://github.com/scalamolecule/molecule-demo.git
cd molecule-demo
sbt compile