mysql

MySQL connector for Crystal database mysql driver
0.1.1 released

crystal-mysql

MySQL driver implemented natively in Crystal, without relying on external libraries.

Why

Using a natively implemented library has a significant performance improvement over working with an external library, since there is no need to copy data to and from the Crystal space and the native code. Initial tests with the library have shown a 2x-3x performance boost, though additional testing is required.

Also, going through the MySQL external library blocks the Crystal thread using it, thus imposing a significant penalty to concurrent database accesses, such as those in web servers. We aim to overcome this issue through a full Crystal implementation of the MySQL driver that plays nice with non-blocking IO.

Status

This driver is a work in progress. Contributions are most welcome.

mysql:
  github: crystal-lang/crystal-mysql
  version: ~> 0.1.1
License MIT
Crystal none

Authors

Dependencies 1

  • db ~> 0.1.0
    {'github' => 'crystal-lang/crystal-db', 'version' => '~> 0.1.0'}

Development Dependencies 0

Dependents 21

Show all 21 dependents
Last synced .
search fire star recently