Vikram Rangnekar
a6691de1b7
fix: remove multi-line graphql query in log
2020-04-19 02:50:09 -04:00
Vikram Rangnekar
e6934cda02
fix: vars not sanitized in roles_query
2020-04-18 17:46:40 -04:00
Hiram Chirino
4cf7956ff5
feat: add cockroachdb support. ( #50 )
...
This PR changes the generated SQL so that it's also compatible with CockroachDB.
Notable changes:
* use `SELECT to_jsonb("__sr_0".*)` instead of `SELECT to_jsonb("__sr_0")`
* don't use `json_populate_record`, use the `CAST` and `->>` instead. For example:
instead of: `SELECT "t"."full_name", "t"."email" FROM "_sg_input" i, json_populate_record(NULL::users, i.j) t`
do: `CAST( i.j ->>'full_name' AS character varying), CAST( i.j ->>'email' AS character varying) FROM "_sg_input" i`
This PR also adds some integration tests against an actual database instance. If you have the cockroachdb binary installed on your PATH,
the test suite will startup a temporary cockroachdb instance on a random port to test against. It is stopped and the tmp data files are deleted once the test ends. It will also run the integration tests against database
pointed at by your `SG_POSTGRESQL_TEST_URL` environment variable if it’s set.
Also includes some small formatting changes introduced by `gofmt -w .`
2020-04-18 17:42:17 -04:00
Vikram Rangnekar
5356455904
Fix issue with relative paths and config files
2020-04-17 10:56:26 -04:00
Vikram Rangnekar
074aded5c0
Upgrade UI and app templates
2020-04-16 10:27:10 -04:00
Vikram Rangnekar
c7557f761f
Fix broken build
2020-04-16 01:28:55 -04:00
Vikram Rangnekar
09d6460a13
Make go get to install work.
2020-04-16 00:26:32 -04:00
Vikram Rangnekar
40c99e9ef3
Fix issue with missing build variables
2020-04-13 00:50:54 -04:00
Vikram Rangnekar
75ff5510d4
Fix issue with failing db cmds
2020-04-13 00:43:18 -04:00
Vikram Rangnekar
1370d24985
Fix issue with make install
2020-04-12 20:35:31 -04:00
Vikram Rangnekar
ef50c1957b
Fix CloudRun connection issue
2020-04-12 10:09:37 -04:00
Vikram Rangnekar
41ea6ef6f5
Fix readme add library usage
2020-04-11 16:41:10 -04:00
Vikram Rangnekar
a266517d17
Remove config package
2020-04-11 02:45:06 -04:00
Vikram Rangnekar
7831d27345
Refactor Super Graph into a library #26
2020-04-10 02:27:43 -04:00
Vikram Rangnekar
e102da839e
Fix issue with Postgres FUNC_MAX_ARGS by moving to row_to_json
2020-04-01 21:25:50 -04:00
Vikram Rangnekar
68a378c00f
Fix issue with prepared statements skipped on error
2020-03-31 01:28:39 -04:00
Vikram Rangnekar
d96eaf14f4
Fix bugs with escape char handling
2020-03-30 10:03:47 -04:00
Vikram Rangnekar
01e488b69d
Fix for bug blocking anon queries
2020-03-21 20:11:04 -04:00
Vikram Rangnekar
7a450b16ba
Fix issue with detecting many to many relationships
2020-03-18 20:19:56 -04:00
Vikram Rangnekar
1ad8cbf15b
Fix minor parser bug
2020-03-17 23:03:41 -04:00
Vikram Rangnekar
f69f1c67d5
Fix to remove left over debug log
2020-03-16 01:43:26 -04:00
Vikram Rangnekar
a172193955
Fix to ensure cursor fields can be defined in the query
2020-03-16 01:40:47 -04:00
Vikram Rangnekar
81338b6123
Fix issues blocking Apollo client
2020-03-14 01:35:42 -04:00
Vikram Rangnekar
265b93b203
Fix for encrypted cursor in production mode bug
2020-03-06 21:38:01 +05:30
Vikram Rangnekar
6c240e21b4
Fix bug related to 'anon' role prepared statements
2020-03-06 15:39:15 +05:30
Vikram Rangnekar
7930719eaa
Add ability to set CORS headers
2020-03-06 09:47:51 +05:30
Vikram Rangnekar
cc687b1b2b
Fix issue with Docerfile CMD
2020-03-05 09:13:52 +05:30
Vikram Rangnekar
3033dcf1a9
Fix issue with setting PORT env var
2020-03-04 15:39:53 +05:30
Vikram Rangnekar
0381982d19
Fix upx version issue in Dockerfile
2020-03-04 12:27:07 +05:30
Vikram Rangnekar
2b0a798faa
Add 'secrets' command to startup script
2020-03-03 19:44:14 +05:30
Vikram Rangnekar
8b6c562ac1
Add CSV import command to seed javascript
2020-03-03 13:45:47 +05:30
Vikram Rangnekar
a1fb89b762
Add support for SQL in variables
2020-02-29 10:35:48 +05:30
frederikhors
c82a7bff0d
Misprint ( #43 )
2020-02-24 10:48:50 +05:30
Vikram Rangnekar
7acf28bb3c
Fix issue with upgrading to postgres 12 docker image #36
2020-02-24 02:37:21 +05:30
frederikhors
be5d4e976a
Misprint ( #41 )
2020-02-24 02:04:23 +05:30
frederikhors
d1b884aec6
Misprint ( #40 )
2020-02-24 02:03:57 +05:30
frederikhors
4be4ce860b
Misprint ( #39 )
2020-02-24 02:03:40 +05:30
frederikhors
dfa4caf540
Misprint ( #37 )
2020-02-24 02:03:27 +05:30
frederikhors
7763251fb7
fix "Try the demo app" in docs ( #38 )
...
* fix "Try the demo app" in docs
* fix "Get Started" setup in docs
2020-02-24 02:02:22 +05:30
Vikram Rangnekar
51e105699e
Fix corrupt json bug in jsn package
2020-02-24 02:00:11 +05:30
frederikhors
90694f8803
Fix spelling in docs ( #34 )
2020-02-23 15:41:04 +05:30
frederikhors
ad82f5b267
Fix spelling in docs ( #35 )
2020-02-23 15:40:42 +05:30
Vikram Rangnekar
99b37a9c50
Fix bug related to new Postgres docker image
2020-02-23 10:28:32 +05:30
Vikram Rangnekar
7ec1f59224
Fix bug with cursors and multiple order by
2020-02-23 02:28:37 +05:30
Vikram Rangnekar
d3ecb1d6cc
Fix bug with multi root queries
2020-02-21 10:29:37 +05:30
Vikram Rangnekar
aed4170e8e
Fix bug with cursor filters
2020-02-20 22:53:29 +05:30
Vikram Rangnekar
c33e93ab37
Add support for cursors with multiple order by clauses
2020-02-19 10:22:44 +05:30
Vikram Rangnekar
3d3e5d9c2b
Add Yugabyte to docs
2020-02-12 08:42:53 +05:30
Vikram Rangnekar
67b4a4d945
Fix issue with cursor as a variable
2020-02-11 11:41:35 +05:30
Vikram Rangnekar
7413813138
Add pagination using opaque cursors
2020-02-10 12:15:37 +05:30