 Adam C. BakerandJoe Nelson
|
5cc77709ba
|
Add like/ilike
|
2015-02-15 15:23:18 -08:00 |
|
Adam C. Baker
|
3151aa2ebc
|
fix table parsing
|
2015-01-26 18:42:46 -08:00 |
|
Adam C. Baker
|
e1ad5cb1ae
|
handle errors in the app too
|
2015-01-26 18:07:38 -08:00 |
|
Adam C. Baker
|
ead346816b
|
reporting errors, but not passing tests.
|
2015-01-26 17:31:59 -08:00 |
|
Adam C. Baker
|
c9b960f955
|
only create schema once
|
2014-12-29 17:57:31 -08:00 |
|
Adam C. Baker
|
23a75aefcc
|
bump hspec version.
use new version for before_
|
2014-12-29 17:57:31 -08:00 |
|
Adam C. Baker
|
3756309b22
|
create items in test, not in the schema.
|
2014-12-29 17:57:31 -08:00 |
|
Adam C. Baker
|
2ae99daa12
|
resetDb once for each set of tests.
|
2014-12-29 17:57:31 -08:00 |
|
Adam C. Baker
|
638cd3d49d
|
update run example for new CLI
|
2014-12-07 18:51:51 -08:00 |
|
 Adam C. BakerandJoe Nelson
|
41a982fb31
|
Remove HDBC imports
|
2014-12-06 17:42:17 -08:00 |
|
Adam C. Baker
|
2b76c87d1d
|
trivial test change to illustrate alternative to pick
|
2014-11-11 21:29:40 -08:00 |
|
Adam C. Baker
|
74855db87b
|
declare required extensions
and remove default extension pragmas (OverloadedStrings)
|
2014-11-05 00:32:10 -08:00 |
|
Adam C. Baker
|
2b829f9152
|
cleanup connections on close.
|
2014-10-28 14:41:32 -07:00 |
|
Adam C. Baker
|
2773ef3030
|
restore test
|
2014-10-17 17:28:06 -07:00 |
|
Adam C. Baker
|
0798cb81a6
|
App has database pools!
|
2014-10-17 17:16:41 -07:00 |
|
Adam C. Baker
|
49f0bf7c3f
|
broken attempts to work on concurrency
|
2014-10-17 17:10:34 -07:00 |
|
Adam C. Baker
|
5630ee52fd
|
Merge branch 'master' into errors
Conflicts:
src/Main.hs
src/Middleware.hs
|
2014-10-13 17:45:32 -07:00 |
|
Adam C. Baker
|
fd237b33b1
|
fix/unpend tests.
|
2014-10-13 16:54:21 -07:00 |
|
Adam C. Baker
|
1cee5b57ce
|
fixing up the test app
|
2014-10-13 16:54:05 -07:00 |
|
Adam C. Baker
|
f81ca8bf0b
|
move auth out of dbapi, use middleware, put in main
|
2014-10-13 16:52:14 -07:00 |
|
Adam C. Baker
|
fff84cca90
|
rename reportPgErrors to clientErrors
|
2014-10-13 16:51:21 -07:00 |
|
Adam C. Baker
|
dcdca445b5
|
authenticated middleware
|
2014-10-13 16:48:20 -07:00 |
|
Adam C. Baker
|
f7c825f646
|
rename pgSetRole, pgResetRole to setRole, resetRole
|
2014-10-13 16:46:33 -07:00 |
|
Adam C. Baker
|
2028500da7
|
withSavepoint middleware
|
2014-10-13 13:04:25 -07:00 |
|
Adam C. Baker
|
a984fe3bf9
|
flip args to inTransaction
|
2014-10-10 17:32:17 -07:00 |
|
Adam C. Baker
|
e4669dcb37
|
handle all requests in a transaction.
|
2014-10-10 17:16:56 -07:00 |
|
Adam C. Baker
|
57f4d478fc
|
pending failing options test.
|
2014-10-10 17:01:20 -07:00 |
|
Adam C. Baker
|
a973020748
|
handle inserting no data correctly
with "insert into [table] default values"
|
2014-10-10 16:52:01 -07:00 |
|
Adam C. Baker
|
0879ed7110
|
flip app args
|
2014-10-10 15:54:05 -07:00 |
|
Adam C. Baker
|
ddc5b789f2
|
Merge pull request #64 from begriffs/cleanup
Cleanup
|
2014-10-09 15:18:35 -07:00 |
|
Adam C. Baker
|
e5db9bc58e
|
remove top level binding in test script
|
2014-10-09 14:14:53 -07:00 |
|
Adam C. Baker
|
ef6b38ea1e
|
reformat raw sql for readability
|
2014-10-09 14:11:35 -07:00 |
|
Adam C. Baker
|
ea17642f08
|
Better error for mkColumn
|
2014-10-09 14:11:21 -07:00 |
|
Adam C. Baker
|
5dd3f9c79a
|
Merge branch 'fk'
Conflicts:
src/PgStructure.hs
test/Feature/StructureSpec.hs
test/fixtures/schema.sql
|
2014-10-09 12:30:39 -07:00 |
|
Adam C. Baker
|
195e904817
|
make compound_pk owned by dbapi_anonymous
|
2014-10-08 17:04:44 -07:00 |
|
Adam C. Baker
|
ee02a98cf2
|
emit references for columns with foreign keys
|
2014-10-08 16:38:12 -07:00 |
|
Adam C. Baker
|
e17c51e2f1
|
clean up spec helper
|
2014-10-08 16:37:53 -07:00 |
|
Adam C. Baker
|
c9fc2154ab
|
fix basic auth parsing
|
2014-10-08 16:37:30 -07:00 |
|
Adam C. Baker
|
5d64258140
|
fix test to reflect more tables
|
2014-10-08 16:36:47 -07:00 |
|
Adam C. Baker
|
40f3056ef4
|
some more setup/teardown actions
|
2014-10-08 15:21:18 -07:00 |
|
Adam C. Baker
|
f0e8d23dd2
|
getting foreign key data with a column.
|
2014-10-08 15:20:26 -07:00 |
|
Adam C. Baker
|
59f9855362
|
return a map of foreign keys
|
2014-10-08 15:20:26 -07:00 |
|
Adam C. Baker
|
d16ecdc28f
|
data/procedure for foreign key
|
2014-10-08 15:20:26 -07:00 |
|
Adam C. Baker
|
5063dfe894
|
simple unit tests for existing functionality
|
2014-10-08 15:20:26 -07:00 |
|
Adam C. Baker
|
e302bb1d19
|
add table with fk for testing.
|
2014-10-08 15:20:26 -07:00 |
|
 Adam C. BakerandJoe Nelson
|
dac9f02578
|
allow options, capital Authorization.
|
2014-10-03 14:47:29 -07:00 |
|
 Adam C. BakerandJoe Nelson
|
0067f60316
|
first pass at CORS handling.
|
2014-10-03 14:47:29 -07:00 |
|
Adam C. Baker
|
bf494abb58
|
remove redundant import
|
2014-10-01 16:40:23 -07:00 |
|
Adam C. Baker
|
4c636b5512
|
slightly more specific error check.
|
2014-10-01 16:19:52 -07:00 |
|
Adam C. Baker
|
5e23dfcf32
|
Merge pull request #41 from begriffs/auth-test
more unit-y unit tests
|
2014-10-01 16:01:18 -07:00 |
|
Adam C. Baker
|
bfa6a968a6
|
more unit-y unit tests
|
2014-10-01 15:42:57 -07:00 |
|
 Adam C. BakerandJoe Nelson
|
14fa20f0e6
|
addUser function.
|
2014-09-29 15:52:01 -07:00 |
|
Adam C. Baker
|
37f2aef212
|
don't add bogus user.
|
2014-09-26 17:50:51 -07:00 |
|
Adam C. Baker
|
34b53dd6b4
|
don't bother with access to public in schema fixture.
|
2014-09-26 17:36:26 -07:00 |
|
Adam C. Baker
|
f203982527
|
have test fixtures load roles too.
|
2014-09-26 16:58:55 -07:00 |
|
Adam C. Baker
|
29b70ca035
|
selective exports hides implementation details.
|
2014-09-26 13:25:32 -07:00 |
|
Adam C. Baker
|
a93065a887
|
specify schema as a string everywhere in the app.
This will make it easier to support semantic API versioning,
and makes code reuse easier right now.
|
2014-09-26 12:51:36 -07:00 |
|
Adam C. Baker
|
88f9d67e92
|
kill library entry. Add bcrypt.
|
2014-09-25 15:18:58 -07:00 |
|
Adam C. Baker
|
cf5510c425
|
upgrade hspec-wai, get tests passing.
|
2014-09-24 19:08:05 -07:00 |
|
Adam C. Baker
|
7c93c788fa
|
fucking redundant import warnings breaking my build.
|
2014-09-04 13:09:27 -07:00 |
|
Adam C. Baker
|
16256562f1
|
nail down optparse-applicative version
|
2014-09-04 12:45:58 -07:00 |
|
Adam C. Baker
|
9cae4f1354
|
test insert errors.
|
2014-09-04 01:01:27 -07:00 |
|
Adam C. Baker
|
e7344bf16f
|
extract test type, add useful functionality.
|
2014-09-04 01:00:48 -07:00 |
|
Adam C. Baker
|
e3bf277bca
|
Rescue unit test
|
2014-09-03 16:36:17 -07:00 |
|
Adam C. Baker
|
d90bc93698
|
POST to insert row.
|
2014-08-07 12:43:33 -07:00 |
|
Adam C. Baker
|
5befd3dd8b
|
add types and instances for converting json <-> sql
|
2014-08-07 02:05:09 -07:00 |
|
Adam C. Baker
|
60e1f920ab
|
handle empty body on get request.
|
2014-08-02 16:52:13 -07:00 |
|
Adam C. Baker
|
53d90987ff
|
don't just get the default host for every connect option.
|
2014-07-06 20:12:23 -07:00 |
|
Adam C. Baker
|
91efcba6e9
|
parse db url. Fixes #5.
|
2014-07-06 20:03:54 -07:00 |
|
Adam C. Baker
|
57fa142af8
|
better table json properties.
|
2014-06-21 16:07:05 -07:00 |
|