Releases: scalamolecule/molecule-old
Releases · scalamolecule/molecule-old
v0.4.0 Optional values (like Null)
Molecule now supports optional values:
val names = Person.firstName.middleName$.lastName.get map {
case (firstName, Some(middleName), lastName) => s"$firstName $middleName $lastName"
case (firstName, None, lastName) => s"$firstName $lastName"
}
Also when inserting varying data sets, this comes in handy, like for instance if middle names are sometimes present and sometimes not:
Person.firstName.middleName$.lastName insert List(
("John", None, "Doe"),
("Lisa", Some("van"), "Hauen")
)
See more examples of even deeply nested optional values in the OptionalValues tests.
v0.3.0 Nested data structures
Products and Orders (https://github.com/scalamolecule/molecule/blob/master/examples/src/test/scala/molecule/examples/dayOfDatomic/ProductsAndOrders.scala) shows how Molecule can now retrieve nested data structures at up to 10 levels deep (more can be implemented if necessary). This means that you don't need to manually organize the flat output from Datomic into hierarchical data structures yourself when you query for one-many or many-many data. Molecule does it for you.
BackReferences simplified
Version 0.2.2 - Fixing BackReferences
v0.2.0
First version on Sonatype
v0.1.1 Preparing v0.1.1 for Sonatype
Initial commit
- Seattle tutorial implemented
- Basic wiki