Commit Graph

39 Commits

Author SHA1 Message Date
Vikram Rangnekar 82cc712a93 fix: bug with shared pointer in new jit mode 2020-06-03 18:19:07 -04:00
Vikram e82e97a9d7 fix: issues caught by fuzzer 2020-05-31 14:11:28 -07:00
Vikram 6102f1d66e fix: infinite loop on missing allow.list issue 2020-05-30 23:36:44 -07:00
Vikram Rangnekar 2241364d00 fix: rewrite the sql args and variables codebase to use expression values 2020-05-26 19:41:28 -04:00
Vikram Rangnekar 01ad9b71ba feat: add opencensus tracing and metrics support 2020-05-23 11:43:57 -04:00
Vikram Rangnekar c7837bf758 feat: add open opencensus telemetry support 2020-05-22 16:49:54 -04:00
Hiram Chirino ec2f8d0c58
chore: pickup latest version of chirino/graphql module for it’s schema api simplifications. (#58) 2020-05-01 02:03:35 -04:00
Vikram Rangnekar 1a70603b1a feat: add option to set the cache-control header 2020-04-24 20:45:03 -04:00
Vikram Rangnekar bdffe7b14e fix: add a benchmark around the GraphQL api function 2020-04-23 01:42:16 -04:00
Hiram Chirino 966aa9ce8c
feat: add some initial introspection support. (#52) 2020-04-19 23:48:49 -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 c7557f761f Fix broken build 2020-04-16 01:28:55 -04:00
Vikram Rangnekar 7831d27345 Refactor Super Graph into a library #26 2020-04-10 02:27:43 -04:00
Vikram Rangnekar 7930719eaa Add ability to set CORS headers 2020-03-06 09:47:51 +05:30
Vikram Rangnekar 8b6c562ac1 Add CSV import command to seed javascript 2020-03-03 13:45:47 +05:30
Vikram Rangnekar 1a3d74e1ce Fix issues surfaced by the fuzzer 2020-02-02 01:43:09 -05:00
Vikram Rangnekar a40bd7fca5 Add HTTP GZip compression 2019-12-31 01:30:20 -05:00
Vikram Rangnekar e82bdbed65 Add a CHANGLOG.md 2019-11-29 00:14:05 -05:00
Vikram Rangnekar 9ebd03fa8c Move license from MIT to Apache 2.0. Add Makefile 2019-11-28 01:25:46 -05:00
Vikram Rangnekar c74226208d Add fuzz testing to 'jsn' and 'qcode' 2019-10-26 03:02:05 -04:00
Vikram Rangnekar 6f1a2acf96 Fix demo rails app broken build 2019-10-01 00:00:15 -04:00
Vikram Rangnekar 63afefa9e8 Fix new app templates 2019-09-29 01:16:34 -04:00
Vikram Rangnekar 9b63f01905 Remove unused packages 2019-09-28 21:53:32 -04:00
Vikram Rangnekar 7e4d14fbca Add database setup commands 2019-09-28 11:34:03 -04:00
Vikram Rangnekar ecec2968e9 Add initialization command to setup new apps 2019-09-27 02:19:24 -04:00
Vikram Rangnekar 5e86b445c5 Add migrate command 2019-09-26 00:35:31 -04:00
Vikram Rangnekar 18ce030056 Add database seeding capability 2019-09-20 00:19:11 -04:00
Vikram Rangnekar 78dbe32bd4 Watch and reload on config changes 2019-09-08 14:56:32 -04:00
Vikram Rangnekar 340dea242d Optimize lexer and fix bugs 2019-06-14 22:17:21 -04:00
Vikram Rangnekar 9af320f396 Futher reduce allocations on the compiler hot path 2019-06-14 00:32:15 -04:00
Vikram Rangnekar 7643e6ffa7 Add request / response debugging for remote joins 2019-06-06 08:57:00 -04:00
Vikram Rangnekar f16e95ef22 Add REST API stitching 2019-05-12 19:27:26 -04:00
Vikram Rangnekar b666876064 Add SQL query cacheing 2019-04-20 00:35:57 -04:00
Vikram Rangnekar 512647156e Add supprt for new Rails 5.2 aes-256-gcm cookies 2019-04-10 01:38:48 -04:00
Vikram Rangnekar f37ee50f7b Fix issue with asset packer breaking Docker builds 2019-03-28 09:38:05 -04:00
Vikram Rangnekar d232c3d8a3 Pack web UI with app into a single binary 2019-03-27 22:01:02 -04:00
Vikram Rangnekar 775d5496cd Fix perf issue with inflections 2019-03-25 00:43:14 -04:00
Vikram Rangnekar b9d38a5e9d First commit 2019-03-24 09:57:29 -04:00