core-lightning/doc/schemas/sql.schema.json
Rusty Russell 14aac0769c doc: document the sql command.
In particular, we generate the schema part from the plugin itself.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: Plugins: `sql` plugin command to perform server-side complex queries.
2023-01-30 15:15:41 -06:00

21 lines
403 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"rows"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "array"
}
},
"warning_db_failure": {
"type": "string",
"description": "A message if the database encounters an error partway through"
}
}
}