Diogo Biazus
|
893b7a7126
|
Applies range headers to /rpc calls using LIMIT/OFFSET.
|
2016-02-26 14:41:27 -05:00 |
|
Joe Nelson
|
f28b03f419
|
Allow new hasql-transaction to do rollbacks
|
2016-02-25 20:13:03 -08:00 |
|
Joe Nelson
|
17acd134c7
|
Suppress server logging in test mode
|
2016-02-22 17:48:33 -08:00 |
|
Joe Nelson
|
d4a4bbf966
|
Roll back on db errors
|
2016-02-22 16:52:50 -08:00 |
|
Joe Nelson
|
d5c1438c6e
|
Use hasql-transaction
Also use hspec before-wrapper
|
2016-02-21 18:05:25 -08:00 |
|
Joe Nelson
|
d7fe59f0b0
|
WIP: share server code between tests and program
- Share server code in Main
- Switch to hasql-pool
- Use pool in tests
- DRY up test runner
|
2016-02-21 12:22:18 -08:00 |
|
 Diogo BiazusandJoe Nelson
|
01ab540ffe
|
Simplify return from withResource in Main.hs
|
2016-02-20 18:03:17 -08:00 |
|
 Diogo BiazusandJoe Nelson
|
de848f64fa
|
Return the results from withResource function before applying the respond continuation. This ensures that the pool resource is freed as soon as the database operation is complete
|
2016-02-20 18:03:06 -08:00 |
|
Joe Nelson
|
f3293cfac1
|
Do not name import of void directly as it is used conditionally
|
2016-02-12 23:15:09 -08:00 |
|
Joe Nelson
|
677c73cfe5
|
New versions of Warp do not export Connection
|
2016-01-24 18:09:21 -08:00 |
|
Joe Nelson
|
51f71eb53d
|
Run queries in a transaction again
|
2016-01-24 18:09:19 -08:00 |
|
Joe Nelson
|
3844f3ee96
|
The app compiles but totally untested
|
2016-01-24 18:09:19 -08:00 |
|
Joe Nelson
|
b46b3c7b9a
|
Conditional compilation for signal handling
Will not compile on windows
|
2015-12-16 18:05:48 -08:00 |
|
Joe Nelson
|
969a95b29b
|
Remove shutdown message which spoils log format
|
2015-12-07 23:34:34 -08:00 |
|
Joe Nelson
|
ca5078b4f8
|
Alphabetize other imports
|
2015-12-07 16:54:59 -08:00 |
|
Joe Nelson
|
67a3194903
|
Release all db connections on ctrl-c
Fixes #268
|
2015-12-07 16:54:59 -08:00 |
|
calebmer
|
b651a45734
|
Fix time fetch on initialization
|
2015-11-28 16:49:12 -05:00 |
|
Joe Nelson
|
87c946ef52
|
Treat JWT as a Secret, not String
|
2015-11-19 09:58:41 -08:00 |
|
calebmer
|
ad555986d4
|
Error refactors
|
2015-11-16 17:28:39 -05:00 |
|
calebmer
|
b8b073810f
|
Rename functions
|
2015-11-11 15:53:52 -05:00 |
|
calebmer
|
16af8fc61e
|
Better relations for views
- Better column synonyms detection
- Raise relations to accessible schema when possible
|
2015-11-11 09:11:57 -05:00 |
|
calebmer
|
7560fafbab
|
Refactor DbStructure
- Rename `dbstructure` to `db` in App.hs
- Rename PgStructure* to DbStructure*
- Move `DbStructure` creation to DbStructure.hs
|
2015-11-11 09:03:06 -05:00 |
|
Ruslan Talpa
|
1b402abaf2
|
Merge remote-tracking branch 'begriffs/v3' into v3
|
2015-11-10 10:22:06 +02:00 |
|
calebmer
|
c024687629
|
Remove secure flag entirely
|
2015-11-08 13:03:50 -05:00 |
|
Ruslan Talpa
|
14e806759d
|
Revert to the old way of displaying the list of tables
|
2015-11-03 09:31:56 +02:00 |
|
Ruslan Talpa
|
f02b8381ea
|
shape the response after inserting
|
2015-10-27 13:16:14 +02:00 |
|
Ruslan Talpa
|
f5fb78ec99
|
version changed to 3, circle ci to use ghc 7.10.1, stricter import/export in PgQuery and remove of dead code
|
2015-10-23 12:23:46 +03:00 |
|
Diogo Biazus
|
3add3f5b6c
|
First draft of big auth simplification
|
2015-10-16 15:55:47 -04:00 |
|
Joe Nelson
|
6dbb69a828
|
Ensure that version error message tracks changing requirements
|
2015-10-12 17:10:57 -07:00 |
|
Joe Nelson
|
e37b2d8c59
|
Provide detailed logging for any db errors caused internally by postgrest
|
2015-10-12 17:10:52 -07:00 |
|
calebmer
|
5feb334191
|
Use postgres connection string
|
2015-10-11 16:26:29 -04:00 |
|
Diogo Biazus
|
adfd980a60
|
Moves minimum pg version to config, eliminates magic constant from main and improves docs.
|
2015-10-06 20:27:54 -04:00 |
|
Diogo Biazus
|
ed9eea3e8b
|
Imports (<>) from Data.Monoid
|
2015-10-05 18:53:44 -04:00 |
|
Diogo Biazus
|
3a1f7938e8
|
Moves all config related code to PostgREST.Config module and
tweak the code to better encapsulate functionality.
|
2015-10-05 14:50:35 -04:00 |
|
Ruslan Talpa
|
8ff4b4be66
|
lint fix
|
2015-10-01 10:36:33 +03:00 |
|
Ruslan Talpa
|
812135d1e5
|
cleanup suggested by @begriffs
|
2015-10-01 10:30:41 +03:00 |
|
Ruslan Talpa
|
94b1d2815c
|
small changes suggested by @diogob
|
2015-09-29 11:40:33 +03:00 |
|
Ruslan Talpa
|
1da26cac98
|
trying to make it work with ghc 7.8 (3)
|
2015-09-28 16:54:34 +03:00 |
|
Ruslan Talpa
|
c42832f1c5
|
code cleanup
|
2015-09-25 11:51:37 +03:00 |
|
Ruslan Talpa
|
c0e17c44ba
|
all tests passing after moving table structure detection at load time
|
2015-09-23 09:38:40 +03:00 |
|
Ruslan Talpa
|
6f55e1d389
|
fix for one of the failing tests (acl for tables added)
|
2015-09-22 18:17:24 +03:00 |
|
Ruslan Talpa
|
a7b883c922
|
moved db structure detection at the beginning (2 tests failing)
|
2015-09-22 16:56:19 +03:00 |
|
Joe Nelson
|
35f05f6fe1
|
Standardize indentation
|
2015-09-06 16:13:11 -07:00 |
|
Joe Nelson
|
1656fb9f57
|
Let the transaction reset the role and user id for us
|
2015-08-26 20:49:23 -07:00 |
|
Joe Nelson
|
594327924c
|
Set role locally in a tx to ensure it is reset after error
|
2015-08-26 20:49:23 -07:00 |
|
 Diogo BiazusandJoe Nelson
|
3b017dfdf6
|
Adds 415 response for any non-empty Accept header different from application/json or text/csv. Uses apropriate Content-Type header when sending CSV format.
|
2015-08-20 20:47:36 -07:00 |
|
MattK
|
8eae978eae
|
Enable log capture if stdout is not a terminal
|
2015-07-24 12:14:18 -04:00 |
|
Diogo Biazus
|
9c69553373
|
Verifies PostgreSQL version is supported (+9.2) before spawning server [fixes #157]
|
2015-07-02 09:26:58 -04:00 |
|
Sridhar Ratnakumar
|
c3ad87ffaf
|
Make postgrest usable as a library
|
2015-05-19 23:40:39 -07:00 |
|