SteveBash
50ae48295d
Allow using nulls order without explicit order direction, fix #552
2016-10-04 16:11:19 -05:00
Joe Nelson and GitHub
f3b79bcc40
Use table alias unlikely to conflict with a column name ( #705 )
2016-09-08 08:16:47 -07:00
Diogo Biazus and Joe Nelson
6f737056a2
Protolude completion in library and executable ( #697 )
2016-08-21 15:10:19 -07:00
Ruslan Talpa
1372de6f43
query simplification by @diogob
2016-06-28 12:18:12 +03:00
Ruslan Talpa
2f166088c8
response shaping and filtering for rpc proc calls
2016-06-28 12:09:58 +03:00
Ruslan Talpa and Joe Nelson
b916ed907b
fix #637 ( #647 )
2016-06-17 10:45:25 -07:00
Joe Nelson
7563b5e2f4
Move unwords higher for branch parity
2016-06-02 08:40:24 -07:00
Joe Nelson
5e3d9442af
Use table defaults for empty object insert
...
Fixes #616
2016-06-02 08:40:24 -07:00
Ruslan Talpa
dc727f900d
suggested cleaup by @begriffs
2016-05-31 14:55:31 +03:00
Ruslan Talpa
7c83edc402
Limit embeded items
2016-05-26 09:56:28 +03:00
Christopher League
0940b2dccf
Simplify serialization of location header
...
Possible after bug fix in a Hasql that we picked up with the new
dependency bounds in #606 . Also includes test to ensure location header
is omitted on bulk insert.
2016-05-22 21:54:26 -04:00
Christopher League
5c38b4328b
URL-encode Location header ( closes #588 )
...
The database returns an array of key-value strings like `"k1=eq.hello
world"`. Haskell URL-encodes the portion after the equal sign and joins
them with `&`.
Includes updates to tests in Feature.InsertSpec: The CompoundPK has been
modified to have one Int and one String. We attempt to add a key with a
String that has spaces and other special characters. This requires that
the returned Location header is properly URL-encoded.
2016-05-20 10:42:55 -04:00
Ruslan Talpa
9e6542680b
Fix include entities from the same parent table using two different foreign keys
2016-05-16 15:36:18 +03:00
Ruslan Talpa
c13f0a369b
Support node/column renaming #310
2016-05-12 10:22:19 +03:00
Joe Nelson
3bfe64dd06
Create monomorphic statement function to force use of Text
2016-03-16 21:04:18 -07:00
Joe Nelson
330cc91645
Protect unicode values in requests
2016-03-13 14:20:54 -07:00
Joe Nelson
4cc08a11e7
Prevent duplicate call to stored procs
...
Reuse a CTE for results of call
2016-03-12 18:28:36 -08:00
Diogo Biazus
9d0f3573c6
Implements query counting in proc call and adds Content-Rage to response
...
headers in /rpc calls.
2016-02-26 14:51:35 -05:00
Diogo Biazus
893b7a7126
Applies range headers to /rpc calls using LIMIT/OFFSET.
2016-02-26 14:41:27 -05:00
Joe Nelson
d5c1438c6e
Use hasql-transaction
...
Also use hspec before-wrapper
2016-02-21 18:05:25 -08:00
Joe Nelson
b85fc37130
Protect against nulls that choke our decoder
2016-01-24 18:09:20 -08:00
Joe Nelson
75ebd1bd24
Derp, it is "commit" not "end"
2016-01-24 18:09:20 -08:00
Joe Nelson
cbb2ba7d42
Appease hlint
2016-01-24 18:09:20 -08:00
Joe Nelson
a0b390e735
Avoid possibilities of null for our chosen decoder
2016-01-24 18:09:20 -08:00
Joe Nelson
1f557a92a4
Pass query args properly
2016-01-24 18:09:20 -08:00
Joe Nelson
51f71eb53d
Run queries in a transaction again
2016-01-24 18:09:19 -08:00
Joe Nelson
8b13e7dd73
Header cannot be null even when it is n/a
2016-01-24 18:09:19 -08:00
Joe Nelson
cb3977679d
App.hs compiles (dubiously)
...
Removed query body is no longer a maybe value
2016-01-24 18:09:19 -08:00
Joe Nelson
7b92449343
QueryBuilder compiles with hasql 19
2016-01-24 18:09:18 -08:00
Moti Zilberman
9a596c2500
pgFmtLit: Change condition for using E"..." syntax, fix #458 .
...
Includes a test spec by @diogob.
2016-01-15 11:59:25 +02:00
calebmer
04e1186f08
Consistent read query escaping
2015-12-29 15:24:27 -05:00
Ruslan Talpa
a61778dba0
Fix bug in many-many relation detection introduced but prev PR
2015-12-22 16:36:02 +02:00
calebmer
d1de6615f2
Add back in missing dependency after rebase
2015-12-16 18:37:25 -05:00
calebmer
7392d204bf
More inclusive foreign key ducktyping
2015-12-16 18:24:04 -05:00
calebmer
ee82ad1864
Better documentation adding relations
2015-12-16 18:24:03 -05:00
calebmer
88d4798d5e
Add column select sans id support
2015-12-16 18:24:03 -05:00
calebmer
abe87f2f16
Add support for selecting by column
2015-12-16 18:24:02 -05:00
Ruslan Talpa
4544ce3255
Fix #399 insert records in tables with no SELECT privileges
2015-12-16 10:16:14 +02:00
Ruslan Talpa
1acd07cb61
fix #414 revert to separate count query
2015-12-15 12:04:04 +02:00
calebmer
6ef9000b31
pgFmtIdent always quotes #388
2015-12-13 16:58:56 -05:00
Ruslan Talpa
dad41cd3ed
Fix #396 include records with missing parents and remove CTE related to parent relation
2015-12-09 14:21:27 +02:00
Joe Nelson
cbbb1871bb
Add --max-rows option (no automated tests yet)
...
Fixes #288
2015-12-05 19:03:18 -08:00
Diogo Biazus
71dab115c9
Uses qualified column name in order by clause to allow computed columns
2015-12-02 15:23:10 -05:00
Ruslan Talpa
48ee77a64d
bugfix: filter columns on embeded parent objects
2015-11-24 12:53:50 +02:00
Ruslan Talpa
f678dff735
disambiguate range selection when plurality=singular
2015-11-24 09:39:44 +02:00
Diogo Biazus
addd47c09f
Adds haddock string to QueryBuilder module
2015-11-23 13:56:47 -05:00
Diogo Biazus
be9cce0043
Moves createReadStatement and createWriteStatement to QueryBuilder since they build queries. Also reduces QueryBuilder module interface.
2015-11-23 13:45:10 -05:00
Ruslan Talpa
50745ad48b
Type refactoring (ApiRequest/DbRequest)
2015-11-23 10:12:29 +02:00
Joe Nelson
7f58600dbb
All green
...
But still unsightly
2015-11-22 22:38:54 -08:00
Joe Nelson
936a368be7
Update only the columns specified in the json payload
2015-11-22 17:46:00 -08:00