I have just released a newer version of the postgresql-async project,
an async database connector for PostgreSQL written in Scala and I'm
happy to announce that now there is also a mysql-async project that
also offers an async connector for MySQL. Both projects use Netty as
their network communication framework.
The project aims to offer a simple way to talk to both PostgreSQL and
MySQL in an async way and with a simple "send a statement, get a
future result back" approach. It is not supposed to be a full
replacement for JDBC or anything like that, it's just direct database
access as simple as possible. Scala 2.10 is required due to the use of
the new scala.concurrent.Promise and scala.concurrent.Future objects.
Both drivers offer basic and prepared statement support,
transformations for commonly used types and support for most of the
types offered by the database. You can read the README's available to
see how types are translated between db -> Scala.
You can read more about this release here ->
http://mauricio.github.io/2013/05/18/mysql-async-and-posrgresql-async-0.2.2-released.html
And the Github project repo is here ->
https://github.com/mauricio/postgresql-async
In case you're in a hurry, there is a small sample app using Play 2 +
postgresql-async and deploying on Heroku here ->
http://mauricio.github.io/2013/04/29/async-database-access-with-postgresql-play-scala-and-heroku.html
Feedback, bug reports, bug fixes and other improvements are all welcome :)
-
Maurício Linhares
http://mauricio.github.io/ -
http://twitter.com/#!/mauriciojr