Hey Guys, just released SwayDB v0.7.
This release was aimed at updating data using plain Scala functions. No query language!
Suppose the following
SQL query that increments likes count by 1.
UPDATE LIKES_TABLE SET LIKES = LIKES + 1
SwayDB this would just be a basic Scala function.
def incrementLikes(currentLikes: Int) = Apply.Update(currentLikes + 1)
Since it’s just a function it becomes easy to write test cases, implement complex custom update logic and we can use any JVM library within these functions (I use Circe a lot). It’s also very fast to apply these updates (500,000+ writes/second).
Example test case - LikesSpec.scala.
Please give it a go. Your feedback is very much needed.