Backend for the persistent library using MySQL database server.

Version on this page:2.1.2
LTS Haskell 22.12:
Stackage Nightly 2024-02-26:
Latest on Hackage:

See all snapshots persistent-mysql appears in

MIT licensed by Felipe Lessa, Michael Snoyman
Maintained by Felipe Lessa
This version can be pinned in stack with:persistent-mysql-2.1.2@sha256:2bacd6d9f70557f8d2595ebd9e21e44e8e24a07008398bd2a38607364e456282,1893

Module documentation for 2.1.2

  • Database
    • Database.Persist
      • Database.Persist.MySQL

This package contains a backend for persistent using the MySQL database server. Internally it uses the mysql-simple and mysql packages in order to access the database.

This package supports only MySQL 5.1 and above. However, it has been tested only on MySQL 5.5.

Known problems:

  • This package does not support statements inside other statements.



Provide a FromJSON instance for MySQLConf.