Skip to content

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:

Clone this wiki locally