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
Chris Allen
9109d327c3
postgres database
2017-07-25 13:29:56 -05:00
Chris Allen
9350894518
derp, no sudo
2017-07-25 13:26:30 -05:00
Chris Allen
cf342648cd
Minor test cleanup
2017-07-25 13:15:40 -05:00
Chris Allen
e67422a803
Merge pull request #40 from FintanH/examples
...
Examples
2017-07-25 11:25:14 -05:00
Fintan Halpenny
de2d9f8a0b
Got a working example of cascading delete but it requires a select followed by a delete
2017-07-23 23:49:34 +01:00
Fintan Halpenny
9fc64131b0
Added comments and cleaned up some code
2017-07-22 18:09:13 +01:00
Fintan Halpenny
cbb69420f0
Separated BlogT Monad into its own file and renaming the main to Main.hs
2017-07-22 17:16:11 +01:00
Fintan Halpenny
5b047567f7
Moved to using postgresql with working example of put persons
2017-07-22 16:50:27 +01:00
Fintan Halpenny
93e861cd1b
Trying to figure out why deleteYoungsters is throwing an ErrorConstraint. Been trying Cascade Deletes but it doesn't seem to help
2017-07-17 21:37:15 +01:00
Fintan Halpenny
743ab2a92b
First commit. Have a draft of separating the README examples into functions and running them on a test sqlite DB
2017-07-17 09:20:22 +01:00
Chris Allen
e173a19f13
Revert "unsafeSqlOrderBy"
...
Fixing EOrderRandom is the proper way to do this.
2017-07-13 18:20:32 -05:00
Chris Allen
b7bbe98c11
unsafeSqlOrderBy
2017-07-13 18:09:05 -05:00
Chris Allen
df485bb029
Merge pull request #30 from parsonsmatt/matt/fix-selectSource
...
release key with selectSource
2017-06-21 23:37:06 -05:00
Matt Parsons
40c966bc75
add stack test
2017-06-21 12:23:24 -06:00
Matt Parsons
6a435f53b4
redundant import
2017-06-21 11:46:38 -06:00
Matt Parsons
28ceb892eb
remove comment
2017-06-21 11:28:46 -06:00
Matt Parsons
338f5a3c47
fixes the test failure
2017-06-21 11:26:47 -06:00
Matt Parsons
e330f3326f
comment out '
...
solution', add repro to test suite
2017-06-21 11:25:56 -06:00
Matt Parsons
2fa9760d51
release key
2017-06-21 11:09:37 -06:00
Chris Allen
0c6bba7026
Formatting the Cabal file
2017-05-25 12:07:28 -05:00
Chris Allen
78eaf83859
Whitespace cleanup
2017-05-25 12:00:00 -05:00
Chris Allen
ee4d0d5e35
Merge pull request #28 from bitemyapp/fix-group-by-composite-key
...
Fixing composite key support for group by
2017-05-25 11:51:56 -05:00
Chris Allen
96cc3a546b
Merge pull request #20 from ncaq/master
...
use persistent-sqlite >= 2.1.3
2017-05-25 11:21:18 -05:00
Chris Allen
7488003444
Merge pull request #26 from psibi/persistent-version
...
Allow persistent 2.7.0
2017-05-25 11:21:01 -05:00
Chris Allen
14a28ab32d
Cleanup
2017-05-25 11:19:41 -05:00