mirror https://github.com/mysql-otp/mysql-otp
![]() |
10 years ago | |
---|---|---|
include | 10 years ago | |
src | 10 years ago | |
test | 10 years ago | |
.gitignore | 10 years ago | |
LICENSE | 10 years ago | |
README.md | 10 years ago | |
rebar.config | 10 years ago |
This is a MySQL driver for Erlang following the OTP principles.
Status: Pre-alpha. Connecting and queries using the text protocol work. The API and the value representation are subjects to change.
Background: We are starting this project with the aim at overcoming the problems with Emysql (the currently most popular driver) and erlang-mysql-driver (the even older driver).
Design choices (ideas):
We welcome contributors and new members of the project. We are open for suggestions about the API, the internal design and almost anything else. Let's use the project's wiki for discussions and TODOs.
From the Emysql README:
The driver has several technical shortcomings:
- No clear protocol / connection pool separation
- No clear protocol / socket separation
- A very complicated connection pool management
- Uses the textual protocol in a lot of places where it shouldthe binary protocol
- The API could be better
However, this is probably the best MySQL driver out there for Erlang. The erlang-mysql-driver uses a problematic connection pool design for many use cases and is not suitable for general purpose use. This driver is.