- [
postgresql-async & mysql-async - async, Netty based, database drivers for MySQL and PostgreSQL written in Scala 2.10 and 2.11](#!build-statushttpstravis-ciorgmauriciopostgresql-asyncpnghttpstravis-ciorgmauriciopostgresql-async-postgresql-async-&-mysql-async---async-netty-based-database-drivers-for-mysql-and-postgresql-written-in-scala-210-and-211)
- Abstractions and integrations
- Include them as dependencies
- Database connections and encodings
- Prepared statements gotcha
- What are the design goals?
- What is missing?
- How can you help?
- Main public interface
- Transactions
- Example usage (for PostgreSQL, but it looks almost the same on MySQL)
- LISTEN/NOTIFY support (PostgreSQL only)
- Contributing
- Licence
postgresql-async & mysql-async - async, Netty based, database drivers for MySQL and PostgreSQL written in Scala 2.10 and 2.11
The main goal for this project is to implement simple, async, performant and reliable database drivers for PostgreSQL and MySQL in Scala. This is not supposed to be a JDBC replacement, these drivers aim to cover the common process of send a statement, get a response that you usually see in applications out there. So it's unlikely there will be support for updating result sets live or stuff like that.
This project always returns JodaTime when dealing with date types and not the
java.util.Date
class.
If you want information specific to the drivers, check the PostgreSQL README and the MySQL README.
You can view the project's CHANGELOG here.
- Activate Framework - full ORM solution for persisting objects using a software transactional memory (STM) layer;
- ScalikeJDBC-Async - provides an abstraction layer on top of the driver allowing you to write less SQL and make use of a nice high level database access API;
- mod-mysql-postgresql - vert.x module that integrates the driver into a vert.x application;
- dbmapper - enables SQL queries with automatic mapping from the database table to the Scala class and a mechanism to create a Table Date Gateway model with very little boiler plate code;
- Quill - A compile-time language integrated query library for Scala.
And if you're in a hurry, you can include them in your build like this, if you're using PostgreSQL:
"com.github.mauricio" %% "postgresql-async" % "0.2.20"