Skip to content

Add persistent-mysql-haskell - #4

Open
cdfa wants to merge 188 commits into
masterfrom
persistent-mysql-haskell-9.2
Open

cdfa wants to merge 188 commits into
masterfrom
persistent-mysql-haskell-9.2

Conversation

@cdfa

@cdfa cdfa commented Mar 2, 2026

Copy link
Copy Markdown

No description provided.

naushadh added 30 commits March 16, 2017 20:21
- Updated cabal and changelog files to reflect new package info.
- Updated persistent-test to additionally test persistent-mysql-haskell using the flag mysql_haskell.
- Updated cabal to remove `stability` field since [the it is defunct](http://stackoverflow.com/a/3847493).
- Updated README to express functional feature parity (outside of connection configuration).
- Added APIs for setting port number and character encoding.
- Updated type signature for mkMySQLConnectInfo to align with mysql-haskell.
- Updated README for convenient hackage version discoverability.
- Updated .cabal to add `tls` package to use `ClientParams` type signature.
- Updated `Database.Persist.MySQL` restructure `MySQLConnectInfo` and `MySQLConf` internals for optional TLS configurability.
- Updated changelog to reflect new APIs exposed for TLS.
- Updated .travis.yml to add `mysql_haskell` backend to the matrix so we get public test run and coverage for `persistent-mysql-haskell`.
- Updated README for minor enhancements.
- Updated `Database.Persist.MySQL` to remove accessors since `myPoolSize` was unused and failed `stack --pedantic` compilation.
- Updated `Database.Persist.MySQL` to add pragma to suppress orphan instances warning. This is so we can get travis running tests for now until `MySQLConnectInfo` acquires a `Show` instance natively.
- Removed mysql_haskell test from older resolvers grid since `time` (and potentially more mysql-haskell deps) is not available.
- Fixed an issue where the database was never created for mysql_haskell flag.
Traced the issue of travis failures to `stack solver` execution that tries to plan for _all_ packages, though we may not be testing mysql-haskell in the matrix.
- Updated stack.yaml with extra deps required by mysql-haskell in lts6.
- Re-added mysql_haskell to test matrix as the extra-deps should make it testable again.
- Removed lts2 from test matrix as there are too many missing deps for making mysql_haskell work.
- Error that used to occur, for reference:
```
Database/Persist/MySQL.hs:905:5: error: parse error on input ‘Int’
```
- Fixed conflicts in persistent-test/src/Init.hs by accepting both.
Added minor README enchancement.
- Bump version in cabal.
- Minor doc improvements in README.
parsonsmatt and others added 8 commits September 9, 2025 10:05
Feature: `ON DUPLICATE UPDATE x=IF(x < VALUES(x), VALUES(x), x)`
* added mock structured

* builds

* re-export escape

* move show

* started adding structured representation to AddTable

* make AddTable structured

* remove unneeded lines

* ran fourmolu

* added changelog

* Ran fourmolu again

* manually add restyle

* fix version @SInCE, add newtype to SafeToRemove

* updated constructors to better names

* remove unneeded partition

* move to NEL for reference

* fourmolu

* move structured migration to internal

* fourmolu

* remove unused

* Removed redundant code from mock migration

* tests compile

* Fourmolu

* fixed typo

* update type

* fourmolu

* update changelog

* add NoAction

* update changelog + cabal

* clean up cabal

* style?

* most minor version

* fix build, update persistent-test

---------

Co-authored-by: Kuba Karpierz <karpierz@MacBook-Pro-51.local>
* wip

* Handle existence + test

* Move diffing logic over

* Replace the impl

* expand test

* what da hell

* tracing

* hell yeah

* remove tracing

* format

* Move last two migration fns into Internal.Migration

* docs + re-export new migrateEntitiesStructured

* bump version + add changelog

* format

* Handle duplicate FK constraints

* Add test for duplicate FK constraints

* Switch to pg_catalog for FK constraints

* format

* Restyled by cabal-fmt

---------

Co-authored-by: Restyled.io <commits@restyled.io>
…yesodweb#1614)

* postgresql: Add foreign key constraints the first time when migrating

* Remove unneeded guard

* refactor: don't match on all of the Column fields

* Add changelog + bump version

* Fix
* Improve error messages around getBy with NULLABLE fields

* Changelog entry
…eb#1616)

* added mock structured

* builds

* re-export escape

* move show

* started adding structured representation to AddTable

* make AddTable structured

* remove unneeded lines

* ran fourmolu

* added changelog

* Ran fourmolu again

* manually add restyle

* fix version @SInCE, add newtype to SafeToRemove

* updated constructors to better names

* remove unneeded partition

* move to NEL for reference

* fourmolu

* move structured migration to internal

* fourmolu

* remove unused

* Removed redundant code from mock migration

* tests compile

* Fourmolu

* fixed typo

* update type

* fourmolu

* update changelog

* thread default through

* update test

* update changelog, comments

* styling

---------

Co-authored-by: Kuba Karpierz <karpierz@MacBook-Pro-51.local>
@cdfa
cdfa force-pushed the persistent-mysql-haskell-9.2 branch from c855f56 to 7cab128 Compare March 3, 2026 09:56
@cdfa
cdfa force-pushed the persistent-mysql-haskell-9.2 branch from d578f2c to 4e44a1a Compare March 16, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.