Commit Graph

33 Commits

Author SHA1 Message Date
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 1370d24985 Fix issue with make install 2020-04-12 20:35:31 -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 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 dbcc51c462 Fix invalid import bug 2019-09-30 01:48:29 -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 7c704637e8 Reduce allocations and improve perf over 50% 2019-06-01 02:03:09 -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 d1bf87e19c Add full text search support using TSV indexes 2019-04-05 01:44:30 -04:00
Vikram Rangnekar 83f90c1bbd Add Auth0 JWT support 2019-03-28 22:34:42 -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