Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update esqueleto-next #418

Open
wants to merge 36 commits into
base: esqueleto-next
Choose a base branch
from

Conversation

parsonsmatt
Copy link
Collaborator

@parsonsmatt parsonsmatt commented Dec 27, 2024

This PR updates esqueleto-next with the changes that have happened on 3.5.

duplode and others added 30 commits June 8, 2023 09:49
* Add just to a couple Haddock left join examples

Fixes #307

* Also add just to the old syntax example

* Update changelog.md for PR #363
* Name conflict dodges

* Add changelog link

* whoops lmao
* Add `ToAlias`, `ToAliasReference` for <=16-tuples

This adds a `ToAlias` and `ToAliasReference` instance for every tuple
size from 9 to 16. These tuple sizes are supported elsewhere, but those
typeclasses only had instances for tuples up to size 8.

This also adds `from*` functions for tuples of size 9-16, which didn't
exist before.

* Add to changelog, bump version for #328

---------

Co-authored-by: Matt Parsons <[email protected]>
* Fix `myAge` type in `deriveEsqueletoRecord` documentation

I wrote down the wrong type for some reason, stripping a `Maybe`.

* Bump version 3.5.10.0 -> 3.5.10.1
* Newlines between query chunks

* Fix whitespace newline issues

* changelog, cabal, new ghcs

* ok

* lmao

* uhhh
* Fix Postgres syntax for NOWAIT

* Add noWait test for PostgreSQL

* Bump version
* work

* Implement ToMaybe instances for SqlRecord

* Guard OverloadedRecordDot with CPP pragma

* Better formatting for record spec for GHC <9.0.2

* DoE constructor

* Update changelog

* Test multiple left joins on the same record

* Switch left join values

* More descript in changelog

* Avoid OverloadedRecordDot Usage in Record Specs

* Try quick 8.6.5 fix

* Another 8.6.5 attempt

* Update src/Database/Esqueleto/Record.hs

---------

Co-authored-by: Rebecca Turner <[email protected]>
Co-authored-by: Matt von Hagen <[email protected]>
* fix build for ghc 9.8.1 (#386)

* add information to changelog, fix some formatting and versioning (#386)

* move info in changelog to a different section, add ghc 9.8.1 to github workflows (#386)

* Apply suggestions from code review

---------

Co-authored-by: Christian Berg <[email protected]>
Co-authored-by: Matt von Hagen (Parsons) <[email protected]>
* Add dependencies to nix packages in stack.yaml

* Fix some shouldSatisfy predicates that were always True
Required ToMaybe, ToAlias, ToAliasReference instances for SqlMaybes
Also, required implementation changes to the sqlSelectProcessRow for
SqlMaybes
add FOR NO KEY UPDATE and FOR KEY SHARE
* Do not error on any AppT in sqlMaybeSelectProcessRowDec

No need to be this restrictive in deriveEsqueletoRecord
For example, AppT ListT _ and AppT (ConT _) _ are both fine but would
throw an error here before this change.

* Apply suggestions from code review

---------

Co-authored-by: Matt Parsons <[email protected]>
* Add tests for not_ applied to more complex expressions

* Always parenthesize arguments to not_

* Update test/Common/Test.hs

---------

Co-authored-by: Matt Parsons <[email protected]>
* Remove CPP for ConP

* Use quote for toMaybeTDec

* Bump version and add chnglog entry

* Convert more code to use TH quotes

* Fix newName error

---------

Co-authored-by: Matt Parsons <[email protected]>
* Update CI

* 9.12 has a failing dependency

* lol sigh
* Docs

* changelog

* changelog
* Alias CTEs upon initialising

* Bump version, adhere to style guide

* Update changelog

* Incorporate CTE test

---------

Co-authored-by: Rik van Toor <[email protected]>
* Derive Traversable for Value

* changelog, cabal
* Add NULLS FIRST / NULLS LAST qualifiers for ordering

* Fixup

* Add tests

* Fix test

---------

Co-authored-by: Matt Parsons <[email protected]>
* Add Functor and Bifunctor instance for pairs

* Add since

* changelog entry
* Export SqlSelect from Database.Esqueleto.Experimental

* cabal, changelog
* Materialized CTEs for Postgres

* changelog update

* fix tests

---------

Co-authored-by: Joel McCracken <[email protected]>
* Remove `Coercible` abiilty for `SqlExpr`. (#413)

* Remove Coercible

* Remove coercible

* update docs and changelog

* Support upsert with empty updates (#301)

* Support upsert with empty updates

* stylish, changelog link

* clean

* remove focus

* oh no

* update with new api

* tests pass

* Fix distinctOn (#287)

* Fix distinctOn

* lol

* expose

* Deprecation Cycles for 3.6 (#412)

* Deprecate ilike outside of Postgres

* lol

* Deprecation Cycling

* wow okay cool

* oh woops

* Add fixity on question-dot operator (#420)

* Add fixity on question-dot operator

* changelog link

* Deprecate LockingKind constructors (#421)

* Deprecate LockingKind constructors

* changelog

* `HasField` for `SqlExpr (Maybe (Entity a))` joins `Maybe` (#422)

* HasField on SqlExpr (Maybe Entity) joins Maybe

* hmmm that works kinda nicely

* Incorporate changes from the work codebase

* add another test case

* changelog

* wat

* wat

* wat

* 3.6 fixups  (#425)

* Re-export Nullable from ToMaybe

* Fixity on ilike

* lolwhoops

* changelog link

* add toBaseIdMaybe and fromBaseIdMaybe

* start sketching out the sqlcoerce class

* no sqlcoerce yet

* ok for convenience
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.