martin/tests/expected/auto/fnc.json
Lucas b3fb720a94
Retrieve function source description from comments (#829)
If a PostgreSQL function has an SQL comment, it will try to parse as
JSON and use its values to override the auto-generated TileJSON. It is
recommended to use this form when creating comments to ensure valid JSON
values.

```sql
DO $do$ BEGIN
    EXECUTE 'COMMENT ON FUNCTION YOUR_FUNCTION (ARG1_TYPE,ARG2_TYPE,..ARGN_TYPE) IS $tj$' || $$
    {
      "description": "description override",
      ...
    }
    $$::json || '$tj$';
END $do$;
```

Partially implements #822
2023-08-27 16:46:56 +00:00

11 lines
168 B
JSON

{
"tilejson": "3.0.0",
"tiles": [
"http://localhost:3111/function_zxy_query/{z}/{x}/{y}"
],
"name": "function_zxy_query",
"foo": {
"bar": "foo"
}
}