Skip to content

Add persistent-mysql-haskell#4

Open
cdfa wants to merge 183 commits intomasterfrom
persistent-mysql-haskell-9.2
Open

Add persistent-mysql-haskell#4
cdfa wants to merge 183 commits intomasterfrom
persistent-mysql-haskell-9.2

Conversation

@cdfa
Copy link

@cdfa cdfa commented Mar 2, 2026

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 24 commits May 23, 2025 16:09
* Add tabulateEntityApply

* bump, cangelog

* format internal th

* lol

* empty entities

* Update persistent/Database/Persist/Class/PersistEntity.hs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* 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

* derived eq

* update cabal version

---------

Co-authored-by: Kuba Karpierz <karpierz@MacBook-Pro-51.local>
* warn when parsing quoted field attributes

* warn when parsing quoted directive arguments

* add another test

* remove an unused import

* improve a name

* fix issues found in testing

* fix a bug in a test

* allow deriving nothing

* refactor to remove boolean argument

* move warning-related tests into CPP

* formatting

* remove redundant tests (which were in the wrong place)

* disable fourmolu

* use IsInner in another place

* run formatter

* simplify implementation of `fieldStrictness`

* new versions and changelogs

* clarify changelog message

* more formatting

* remove superfluous `optional`

* more formatting

---------

Co-authored-by: Restyled.io <commits@restyled.io>
* Format with fourmolu

* ok with fourmolu 18
* Use Interval type from postgresql-simple-interval

* Allow building with older versions of base

* Allow older bytestring

* Fix imports

* Avoid generating invalid intervals

* Fix formatting

* Use upstream Persistent instances

* Upgrade to postgresql-simple-interval 0.2025.7.11

* Avoid building dependencies separately

* Upgrade to postgresql-simple-interval 0.2025.7.12

* Limit microsecond range

* Fix clamp

* Fix tests

* Remove unnecessary dependency

* Upgrade to postgresql-simple-interval 0.2025.8.27

* Upgrade to postgresql-simple-interval 0.2025.9.5

* Add more documentation to PgInterval

* Update change log

* Update change log

* Update postgresql-simple-interval version constraint

* Rerun CI

* Move `@since` annotation to the end

Co-authored-by: Matt Parsons <parsonsmatt@gmail.com>

---------

Co-authored-by: Matt Parsons <parsonsmatt@gmail.com>
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
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.