MIT licensed and maintained by Daniel Casanueva (daniel.casanueva `at` proton.me)
This version can be pinned in stack with:mysql-json-table-0.1.4.0@sha256:fd94ad0ed32ddc1409ee2094b761dce1ca12fe70a000464b9ed30f2b120f9a53,1224

Module documentation for 0.1.4.0

mysql-json-table

Using mysql to store id-to-json tables.

A table would look something like this:

id data
Row identifier JSON-encoded value

Why would you do this?

To re-use mysql-server capabilities without having to deal with table reshaping. If changes come down the road, the data content might change, but the table stays the same. JSON can easily be made compatible between versions, making for smoother releases and rollbacks. It’s also simple, and I like simple.

Documentation

Haddock documentation can be found here (based on the main branch).

Changes

0.1.4.0

  • Add Hashable instance for the Id type.

0.1.3.0

  • New instances for Id:
    • FromJSONKey
    • ToJSONKey
    • FromHttpApiData
    • ToHttpApiData

0.1.2.0

  • Re-export: ConnectInfo, defaultConnectInfo, Connection.
  • New function: withSQL.
  • Fix id table creation.
  • Fixes for id table queries.

0.1.1.0

  • Add new function: moveId.

0.1.0.1

  • Add lower bound for mysql-simple dependency.

0.1.0.0

  • Initial release.