This is a stripped down and heavily modified fork of Eonblast's emysql repository. You should use Eonblast's version.
Of primary note is that prepared statement support is removed*. Outside of that, the general code base should be simpler and cleaner. However the underlying design and architecture of this application is generally flawed. This is just our attempt to take what works for us and remove everything else to reduce the LoC to maintain. If you are looking for a modern erlang mysql driver with a promising future, take a look at extend's bank and bank_mysql projects.
Our motivation in publishing this is simply to share back our modifications. We do not expect this to be useful to anyone else, nor is it supported.
This project is used and tested with Erlang R16B02 and MySQL 5.5.30
* Note on prepared statement removal:
The reason for its removal is that the implementation was not based on the mysql binary protocol but rather uses the text protocol. This requires escaping of variable data to be done on the client side, providing none of the inherit safety one expects from server side handing of variable data when using prepared statements. For our use case there was no benefit to be had.