-
Notifications
You must be signed in to change notification settings - Fork 0
Resty DBD Streams
Peter edited this page May 1, 2018
·
1 revision
RDS (sometimes "RDB") standarized formats (rds_json_format) of https://github.com/openresty/rds-json-nginx-module#rds_json_format.
- JSON-table-object: each row as a single JSON-object of key-value pairs.
[{"id":1,"name":"marry"},{"id":2,"name":"bob"}]
- JSON-table-array: first item as header and others like CSV-lines, expressed as arrays.
[["id","name"],[1,"marry"],[2,"bob"]]
- rds_json_root: define a root-key in the root-object, e.g.
{"rows":[["id","name"],[2,null],[3,"bob"]]}
See also:
- https://github.com/openresty/rds-csv-nginx-module (standard output of CSV from SQL-database)
- https://github.com/FRiCKLE/ngx_postgres (upstream module that allows nginx to communicate directly with PostgreSQL database)
- https://github.com/auth0/nginx-jwt (Lua script for Nginx that performs reverse proxy auth using JWT's)
- https://openresty.com