Skip to content

Releases: scalamolecule/molecule-old

v0.4.0 Optional values (like Null)

25 Oct 10:29
Compare
Choose a tag to compare

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

04 Oct 11:59
Compare
Choose a tag to compare

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

10 Mar 17:20
Compare
Choose a tag to compare
Version 0.2.2

- Fixing BackReferences

v0.2.0

25 Dec 21:37
Compare
Choose a tag to compare

Implemented Day-Of-Datomic and MBrainz

  • Nested molecules
  • Transitive molecules
  • Simplifying API

First version on Sonatype

08 Jul 18:38
Compare
Choose a tag to compare
v0.1.1

Preparing v0.1.1 for Sonatype

Initial commit

02 Jul 20:55
Compare
Choose a tag to compare
  • Seattle tutorial implemented
  • Basic wiki