Lucas Desgouilles and Joe Nelson
6d5f72bf5f
Update OpenAPI (SQL COMMENT to description, constraints, cleaning up) ( #885 )
2017-07-22 10:56:23 -05:00
Steve Chávez and Joe Nelson
968bf9ce59
Put traditional Filters inside [LogicTree] ( #911 )
2017-07-19 18:01:37 -05:00
steve-chavez
ecd58e1ad2
Refactor rpc to not use count when returning scalar
2017-06-24 21:07:07 -05:00
Steve Chávez and Joe Nelson
b007428142
Allow more than two conditions in a single and/or, Fix #889 ( #892 )
2017-06-21 00:52:21 -05:00
SteveBash and Joe Nelson
b8eb2cd9c1
Add and/or params for complex boolean logic
...
* Add support for and/or params in GET, POST, PATCH and DELETE
* Restrict usage of IN in and/or to be inside parens e.g. in.(1,2,3)
* Allow quoting operators for values that have ',)' chars
inside and/or e.g. eq."(entity,1)"
2017-05-13 16:49:25 -05:00
SteveBash and Joe Nelson
59abecaf5b
Add missing tests for NOT IN accepting empty values and refactor
...
Go back to operators map since the previously defined
Operator constructors added innecesary complexity also
rename Path to EmbedPath
2017-05-13 16:49:25 -05:00
Steve Chávez and Joe Nelson
0a9d9cdded
Fix #701 : allow quoted values for IN operator, refactor and Fix #641 : allow IN filter to have no values ( #854 )
2017-04-11 00:57:44 -05:00
Joe Nelson and GitHub
56bdf59e14
Read only proc tx ( #844 )
2017-04-07 12:52:16 -05:00
Steve Chávez and Joe Nelson
47b023e858
Fix proc resource embedding issue with search_path and refactor return type ( #831 )
2017-03-20 23:50:42 -07:00
Diogo Biazus and Joe Nelson
206ab163b6
Refactor error type and fix nested error message [ fix #791 ] ( #829 )
2017-03-12 22:02:13 -07:00
Diogo Biazus and Joe Nelson
728e40c96c
Update hspec-wai to 0.8.0 ( #799 )
2017-02-14 21:18:01 -08:00
Steve Chávez and Joe Nelson
7e2cb5fe1c
Fix alias in select for mutate queries and small refactor ( #779 )
2017-01-16 23:20:02 -08:00
Diogo Biazus
6c275fcec2
Coalesce types UniformObjects and Payload into the new PayloadJSON
2016-11-27 23:55:26 -05:00
Diogo Biazus
090a62a2c8
Removes error case from Payload type. Now we don't build a payload when the parsing fails.
2016-11-27 23:55:02 -05:00
Diogo Biazus
47c4fbc8ef
Introduce the type ApiRequestError and make userApiRequest return an Either ApiRequestError ApiRequest
2016-11-27 23:54:23 -05:00
Joe Nelson
5d904dfd66
Merge PR #713
...
Resolve petty CHANGELOG conflict
2016-10-12 20:52:40 -07:00
SteveBash
191601f129
Add ability to order by jsonb keys, fix #644
2016-10-05 14:46:12 -05:00
Ruslan Talpa
211e3d4141
fix relation detection bug and allow offset on lower levels
2016-10-05 11:34:07 +03:00
SteveBash
50ae48295d
Allow using nulls order without explicit order direction, fix #552
2016-10-04 16:11:19 -05:00
Joe Nelson
25c2cd1f2d
Note which rpc params are optional
2016-09-11 15:15:38 -07:00
Joe Nelson
b9777dec35
Include proc parama and their types in openapi
2016-09-08 23:00:52 -07:00
Joe Nelson
f49c6aa0f3
WIP: show procs in OpenAPI description
...
Thanks @LogvinovLeon
2016-09-08 21:23:16 -07:00
Jacky Hu
1fef1991ef
Add proxy awareness for OpenAPI spec generation
...
Proxy uri from command line options takes precedence over host and port
2016-07-07 19:20:40 +08:00
Joe Nelson and GitHub
63046baffd
Merge pull request #620 from ruslantalpa/rpc_refactor
...
Rpc refactor
2016-07-06 20:51:05 -07:00
Diogo Biazus
578ae6b5dd
Import GHC.Show without qualifying it
2016-06-30 08:35:42 -04:00
Diogo Biazus
3308012dcf
Add protolude to dependencies, include NoImplicitPrelude in default extensions and port Error module to protolude.
2016-06-29 09:25:57 -04:00
Ruslan Talpa
430baf23b9
embed entities to the results returned by procs
2016-06-28 12:09:58 +03:00
Ruslan Talpa
744bbf7203
cache the names of functions returning JWT and avoid extra query on each rpc call
2016-06-28 12:09:58 +03: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
Ruslan Talpa
c13f0a369b
Support node/column renaming #310
2016-05-12 10:22:19 +03:00
Ruslan Talpa
40eec0b2ff
code beautify using stylish-haskell
2016-02-29 14:53:41 +02: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
abc30d5170
DbStructure compiles
2016-01-24 18:09:18 -08:00
Joe Nelson
7b92449343
QueryBuilder compiles with hasql 19
2016-01-24 18:09:18 -08:00
calebmer
abe87f2f16
Add support for selecting by column
2015-12-16 18:24:02 -05:00
Ruslan Talpa
50745ad48b
Type refactoring (ApiRequest/DbRequest)
2015-11-23 10:12:29 +02:00
Joe Nelson
1f6fc5cbd8
Ensure JSON payload objects all have same keys
2015-11-22 13:51:46 -08:00
Joe Nelson
60007b5f10
WIP: Insertion memory leak fixed
...
But a whole lot of other things broken, including updates
2015-11-20 13:08:23 -08:00
Joe Nelson
f54742186b
Use show instances for a shortcut
2015-11-20 10:29:08 -08:00
Joe Nelson
b6a58935f3
Greater type safety for OrderTerm
2015-11-19 11:21:27 -08:00
Ruslan Talpa
0c3545fa09
App.hs refactor
2015-11-16 12:26:55 +02:00
Ruslan Talpa
75646247f2
Add type synonims to to beter explain things that used to be Text
2015-11-16 10:40:46 +02:00
calebmer
2f6254f44c
Rename DbStructure names
2015-11-12 15:01:23 -05:00
calebmer
0374d4e651
Add tables back to DbStructure
2015-11-11 10:32:19 -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
e1e4fe6d5c
Types reference each other
2015-11-11 09:09:53 -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
14e806759d
Revert to the old way of displaying the list of tables
2015-11-03 09:31:56 +02:00
Ruslan Talpa
6fd0d5648f
PUT path commented, DELETE rewritten, all statementT functions commented
2015-10-30 12:08:25 +02:00