Commit Graph

708 Commits

Author SHA1 Message Date
Sebastián Estrella
ea6f1807a4 Add arrayAggDistinct wrapper for PostgreSQL function 2018-01-10 10:02:44 -05:00
Fintan Halpenny
23466a9494
Merge pull request #64 from illmade/master
Postgres Tests
2017-11-30 17:28:25 +00:00
tim
881d9e8eb7 Postgres test instructions with brew instructions 2017-11-30 17:18:23 +00:00
tim
1c8c652e5b Postgres test instructions 2017-11-30 12:29:48 +00:00
tim
bb19b096c4 Postgres test instructions 2017-11-30 12:27:20 +00:00
tim
ab9e286a9b Merge branch 'master' of https://github.com/illmade/esqueleto 2017-11-30 12:22:52 +00:00
tim
355a26de02 Postgres test instructions 2017-11-30 12:18:17 +00:00
tim
6e184d651d Postgres test instructions 2017-11-30 12:14:25 +00:00
Matt Parsons
68c180b8bb Add patched Persistent to stack-7.10.yaml 2017-10-24 11:09:50 -06:00
Matt Parsons
23ac8da92b Remove SqlReadT 2017-10-23 17:28:47 -06:00
Matt Parsons
07167f6474 use upstream persistent 2017-10-23 11:16:59 -06:00
Cole Brown
501cf6b266 Add withNonNull helper to project nullable values
Guards against null values with a where_ call.
2017-10-17 13:25:56 -04:00
Matthias Heinzel
1ca1c3c185 Fix SQL syntax in join example 2017-10-13 22:09:28 +02:00
Matt Parsons
397ece45e2 relax selectSource 2017-09-13 17:30:28 -06:00
Matt Parsons
1a945d27c8 no basebackend pls 2017-09-13 17:23:46 -06:00
Matt Parsons
d621f382bf abstract 2017-09-13 17:14:14 -06:00
Matt Parsons
a01f9c8563 Add projection function 2017-09-13 17:00:31 -06:00
Matt Parsons
5cd4b03ec9 export 2017-09-13 16:31:23 -06:00
Matt Parsons
dbf53c31fb use a compatibility class 2017-09-13 16:27:18 -06:00
Chris Allen
91ea0b0fca Merge pull request #52 from EdwardBetts/spelling
correct spelling mistake
2017-09-01 13:07:55 -05:00
Edward Betts
fcab336fb3 correct spelling mistake 2017-09-01 18:23:53 +01:00
Fintan Halpenny
698c491d73 Big green checks for travis, sweeping the dirty mysql under the rug 2017-08-10 22:00:45 +01:00
Fintan Halpenny
317a24d841 Put sqlite before mysql 2017-08-10 21:48:51 +01:00
Fintan Halpenny
1a88bd85e3 Fixed up some mysql kinks and split out test function. Added new test format to travis yaml. 2017-08-10 21:21:26 +01:00
Fintan Halpenny
dd814584f3 No more CPP 2017-08-09 22:53:28 +01:00
Fintan Halpenny
3f1ffec01a Cleaning up cabal 2017-08-09 22:50:06 +01:00
Fintan Halpenny
6b0028ed69 Cleaning up code 2017-08-09 22:49:18 +01:00
Fintan Halpenny
1262c3fef9 Split into multiple testing stanzas and modules for backends
Common/Test.hs holds all common tests and functionality for the backends
2017-08-09 22:44:30 +01:00
Fintan Halpenny
fe4a78d4b6 Moved all describes tests into their own functions.
Factored out the db specific tests and kept the macros as placeholders.
Import everything in the cabal file for now.
Only using the flags to test that everything still works.
2017-08-09 00:19:09 +01:00
Chris Allen
352fca204c Merge pull request #46 from FintanH/now
Now
2017-08-04 09:50:48 -05:00
Fintan Halpenny
672f6e8884 Bumped up time package upper bound to 1.8.0.2 2017-08-04 15:17:12 +01:00
Fintan Halpenny
2f5715470d The order of the returned values weren't deterministic so switched to shouldMatchList 2017-08-04 15:16:31 +01:00
Fintan Halpenny
406c1ef46c Added cpp if to check for postgres flag
Added deletion of lord and deed entries to allow for a test to pass
2017-08-04 14:10:24 +01:00
Fintan Halpenny
03c9590581 Added lower bound for package 2017-08-04 14:10:17 +01:00
Chris Allen
37e2a88f03 Merge pull request #45 from greydot/newtypes
Replace data with newtype in Value and ValueList.
2017-08-03 21:41:59 -05:00
Fintan Halpenny
274b6b2e7c Uncomment test that was failing 2017-08-03 20:50:00 +01: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
Fintan Halpenny
013dc19b15 Accidentally committed True default for postgres 2017-08-03 20:47:43 +01:00
Lana Black
a22737bad6 Replace data with newtype in Value and ValueList. 2017-08-03 00:22:41 +00:00
Fintan Halpenny
a4ebae2345 Use type constraint to constrain a to UTCTime 2017-08-02 16:34:46 +01:00
Fintan Halpenny
161914ddbc Added now_ function. Works in the tests (NOTE: It doesn not work in SQLite). Need to see if there is an answer for constraining the in to only know about time 2017-08-02 13:48:21 +01:00
Chris Allen
9c73a6f517 Merge pull request #43 from bitemyapp/FintanH/errors
Cleaning up Esqueleto errors
2017-07-31 10:49:17 -05:00
Chris Allen
bf66a49beb Spurious ruler 2017-07-31 10:48:03 -05:00
Chris Allen
36acb1e1c2 Move Exception closer to EsqueletoError 2017-07-31 10:36:19 -05:00
Chris Allen
b7df667d3e Fix spurious Exception instances 2017-07-31 10:36:10 -05:00
Fintan Halpenny
431080611d Broke out the error types into three seperate sum types with one sum type enumerating them
Identified and rewrote all error sections
2017-07-31 10:35:55 -05:00
Fintan Halpenny
b77a0c3e71 Missed some error calls in:
*) unsafeSqlBinOpComposite
*) sqlSelectProcessRow in the instance of SqlSelect (SqlExpr InsertFinal) InsertFinal
2017-07-31 10:35:42 -05:00
Fintan Halpenny
0beec06559 Added EsqueletoProblem for throwing internal esqueleto problems.
Replaced all "error" calls to use throw instead.
2017-07-31 10:34:55 -05:00
Chris Allen
2867517729 Export From 2017-07-25 13:53:20 -05:00
Chris Allen
ff87a31951 Export From 2017-07-25 13:48:19 -05:00