A Reactive Scala wrapper for the official Crate client database driver in Java.
Add the following dependency to your build.sbt
"io.crate" %% "crate-scala" % "1.0"
An example:
val client = ReactiveCrateClient("localhost:4300")
val request = client.sql("SELECT * FROM sys.nodes").map { response =>
println("Crate Nodes: " + response.cols.length)
}
// Blocking for example only
Await.result(request, 5 seconds)
See CrateClientSpec for more working examples.
This project requires SBT to compile.
Tests require a Crate database on localhost.
$ sbt clean compile test
Currently you can publish to your local ivy repo to include as a dependency.
$ sbt publish-local