mysql

A low-level MySQL client library.

https://github.com/paul-rouse/mysql

Version on this page:0.1.1.8@rev:1
LTS Haskell 22.40:0.2.1
Stackage Nightly 2024-11-04:0.2.1
Latest on Hackage:0.2.1

See all snapshots mysql appears in

BSD-3-Clause licensed by Bryan O'Sullivan
Maintained by Paul Rouse
This version can be pinned in stack with:mysql-0.1.1.8@sha256:20b0f161e9da65bd1a5976a77840a2ad0a7046b3a2703f47eb5eeaa081bbf60b,1779

Module documentation for 0.1.1.8

mysql: bindings to the mysqlclient library

This library is a Haskell binding to the MySQL mysqlclient client library. It is a fairly faithful, low level library that implements most of the MySQL client API. The major departure from the C API is that in Haskell, resource management is mostly automatic and safe.

This library deliberately avoids the question of providing a “good” API. Its purpose is to serve as a base upon which higher-level libraries can be built.

Licensing

This library is BSD-licensed under the terms of the MySQL FOSS License Exception.

Since this library links against the GPL-licensed mysqlclient library, a non-open-source application that uses it may be subject to the terms of the GPL.

To do

  • Add support for prepared statements. The prepared statement API is huge and of dubious performance value, so it’s not currently a priority for us. Patches welcome!

Get involved!

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://github.com/bos/mysql.git

There’s also a Mercurial mirror:

  • hg clone http://bitbucket.org/bos/mysql

(You can create and contribute changes using either git or Mercurial.)

Authors

This library is written and maintained by Bryan O’Sullivan, [email protected].