Commit Graph
68 Commits
Author SHA1 Message Date
Joe Nelson 782d6520a2 Upgrade hasql to 0.4.0 2014-12-07 00:11:14 -08:00
Joe Nelson 7d58097449 Be sure to reset db before ALL tests 2014-12-06 17:42:42 -08:00
Joe Nelson 13bc9a4510 Lock hasql version for now 2014-12-06 17:42:22 -08:00
Joe Nelson 5900475460 Reset db between tests rather than using transactions to accomodate Hasql limitation 2014-12-06 17:42:21 -08:00
Joe Nelson 21b0b02c03 Temporarily use psql to load schemas 2014-12-06 17:42:20 -08:00
Joe Nelson d6e3526bff Use Text for textual data
Also upgrade Hasql
2014-12-06 17:42:20 -08:00
Joe Nelson f6b7b42d75 Feature specs compile 2014-12-06 17:42:20 -08:00
Joe Nelson da79f6cea1 Share connection pool with all http clients 2014-12-06 17:42:20 -08:00
Joe Nelson 70d9641e35 WIP: More files converted to Hasql 2014-12-06 17:42:19 -08:00
Joe Nelson 8ebfbccd08 WIP: converting to Hasql 2014-12-06 17:42:19 -08:00
Joe Nelson dd2adf4daa Tests compile, run, and fail
Temporarily disabled unit tests
2014-12-06 17:42:19 -08:00
Joe Nelson d791f3939e The Dbapi module is now App 2014-12-06 17:42:18 -08:00
Joe Nelson cb467b62c1 WIP: cleaner PgQuery functions 2014-12-06 17:42:16 -08:00
Joe Nelson 742ff027ba Require warp >= 3.0.2 for setServerName
Fixes #94
2014-11-06 15:35:17 -08:00
Joe Nelson f58e3db924 Disable transactions for read-only requests 2014-11-06 14:19:19 -08:00
Adam C. Baker 74855db87b declare required extensions
and remove default extension pragmas (OverloadedStrings)
2014-11-05 00:32:10 -08:00
Joe Nelson cc2c65a9ab Build escaped queries in the app itself
universally replace String with Text
2014-11-03 23:30:04 -08:00
Joe Nelson c27f178754 Create functions that mimic Postgres' format() command 2014-11-03 19:53:54 -08:00
Joe Nelson 1a83f2d344 Stop using strings, they are dog slow 2014-11-02 00:10:37 -07:00
Joe Nelson b09ca76333 Add optimization and s3 release script 2014-10-28 19:44:50 -07:00
Joe Nelson 6a5b756cac Report server and version in headers 2014-10-28 17:17:37 -07:00
Joe Nelson 32e3396caf Provide command-line flag for db pool size 2014-10-21 16:15:11 -07:00
Joe Nelson 05bf6b9b06 Standarize db schema dump format 2014-10-21 15:16:03 -07:00
Joe Nelson 5953936c7a Bump version 2014-10-21 10:51:03 -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
Joe Nelson 36b62de998 Merge pull request #79 from begriffs/favicon
Added a favicon, so important!
2014-10-14 13:47:15 -07:00
Joe Nelson aa992f0d92 Add constraint to wai-middleware-static 2014-10-14 11:32:12 -07:00
Joe Nelson 21e4e583ec Return [] rather than nothing on no results
Fixes #70
2014-10-14 11:23:26 -07:00
Joe Nelson 2338d000e1 Added a favicon, so important!
Fixes #71
2014-10-14 11:13:55 -07:00
Joe Nelson fbb13f4ab3 Accept order query param
Fixes #66
2014-10-13 22:29:28 -07:00
Joe Nelson abccb295a3 Remove internal TLS, add option for HTTPS redirection 2014-10-12 19:52:20 -07:00
Joe Nelson ecff987f31 Include "enum" field in column details 2014-10-08 16:51:42 -07:00
Joe Nelson 527d51670c WIP: Trap postgres errors in middleware
Fixes #39
2014-10-08 14:58:38 -07:00
Adam C. BakerandJoe Nelson 0067f60316 first pass at CORS handling. 2014-10-03 14:47:29 -07:00
Joe Nelson 598d70579e WIP: change db roles based on HTTP basic auth headers 2014-09-29 22:52:02 -07:00
Joe Nelson 2f584be0d6 HTTPS only 2014-09-29 14:06:20 -07:00
Joe Nelson 29d278f6bd One string conversion to rule them all 2014-09-28 10:41:37 -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
Joe Nelson a49fb69e58 Appease cabal warning 2014-09-09 22:46:23 -07:00
Joe Nelson 7802fa5b7e Respond with 200 or 206 in ranged responses 2014-09-07 09:38:30 -07:00
Adam C. Baker 16256562f1 nail down optparse-applicative version 2014-09-04 12:45:58 -07:00
Joe Nelson d77e00d93b Ensure location header contains _a_ number, not a particular number 2014-09-01 21:13:46 -07:00
Joe Nelson 910f865303 Get strict on warnings for CI and for life 2014-08-27 20:05:08 -07:00
Joe Nelson 780c9d7c0f Include location header in post response 2014-08-25 11:31:27 -07:00
Joe Nelson 094c145228 Test JSON payload for post 2014-08-23 21:49:16 -07:00
Joe Nelson 9df8a7b99b Add global before/after hspec hook in test/Main.hs 2014-08-17 21:21:47 -07:00
Joe Nelson 0fbfa2395b Ensure db fixtures loaded in feature specs 2014-08-17 16:18:09 -07:00
Joe Nelson 011c7acec9 First feature specs 2014-08-16 22:33:37 -07:00