Commit Graph

17 Commits

Author SHA1 Message Date
Jose Duran
40f7a0ca97 Insert Select With Conflict for postgres (#155)
* add insertSelectWithConflict to allow insert with conflict resolution

* insertSelectWithConflictCount does nothing when no updates given and add tests

* no longer require undefined for insertSelectWithConflict

* Update src/Database/Esqueleto/PostgreSQL.hs

Co-Authored-By: Matt Parsons <parsonsmatt@gmail.com>

* Update src/Database/Esqueleto/PostgreSQL.hs

Co-Authored-By: Matt Parsons <parsonsmatt@gmail.com>

* Update src/Database/Esqueleto/PostgreSQL.hs

Co-Authored-By: Matt Parsons <parsonsmatt@gmail.com>

* Update src/Database/Esqueleto/PostgreSQL.hs

Co-Authored-By: Matt Parsons <parsonsmatt@gmail.com>

* Move non postgres related functions out of postgres module to internal.

* add entry to changelog
2019-10-28 11:56:34 -06:00
Jose Duran
5ff34fc8f8 fix build on 8.4 and 8.2 2019-10-09 21:04:14 -05:00
Jose Duran
3ebb31af58 made upsert and upsertby postgres specific 2019-09-30 14:11:39 -05:00
Kostiantyn Rybnikov
963fa52837 Fix build under GHC 8.4 2018-04-02 15:40:08 +03:00
Philipp Balzarek
b2c01b1286 Fix Postgres aggregate function types (#68)
Aggregate functions like array_agg and string_agg will return NULL instead of
empty arrays and empty strings resp. when run on zero rows. This change reflects
that in the haskell types. It also adds a "maybeArray" function that
coalesces NULL into an empty array, because currently there is no way to write
an empty array literal (`val []` does not work)
2018-03-08 15:23:41 +01:00
Philipp Balzarek
381e50494a Generalize postgresql aggregate functions 2018-03-08 14:08:43 +01:00
Philipp Balzarek
b9d02ff8be Add arrayRemoveNull function (Postgresql) 2018-03-07 15:39:25 +01:00
Chris Allen
391aa86464 Changelog, bifurcating random_ 2018-02-27 18:19:46 -06:00
Chris Allen
0acb568445 Updating for UnliftIO, Conduit 1.3, Persistent 2.8 2018-02-27 17:45:25 -06:00
Sebastián Estrella
b0abe50812 Add arrayRemove wrapper for PostgreSQL function 2018-01-10 13:34:25 -05:00
Sebastián Estrella
ea6f1807a4 Add arrayAggDistinct wrapper for PostgreSQL function 2018-01-10 10:02:44 -05:00
Fintan Halpenny
8eab68a8d3 Removed now from typeclass and moved it to PostgreSQL. Testing for DB clock against machine clock 2017-08-03 20:48:42 +01:00
Chris Coffey
9604b25833 Fix postgres tests 2017-02-04 13:02:09 -05:00
Felipe Lessa
78a7fcdaeb New SqlString class, ditch IsString. 2015-08-05 15:54:16 -03:00
Kris Jenkins
fa1d1c8887 Adding chr to the list of Postgresql functions. 2015-08-02 22:13:29 +01:00
Felipe Lessa
3bfa1a9a43 Add stringAgg to PostgreSQL module (fixes #98). 2015-07-15 12:34:47 -03:00
Felipe Lessa
6c63f2c5ac Add array_agg function, new PostgreSQL module. 2015-07-15 12:28:26 -03:00