{"database": "docs", "table": "sections", "rows": [["authentication:authentication-permissions-query", "authentication", "authentication-permissions-query", "Controlling access to specific canned queries", "Canned queries  allow you to configure named SQL queries in your  metadata.json  that can be executed by users. These queries can be set up to both read and write to the database, so controlling who can execute them can be important. \n                 To limit access to the  add_name  canned query in your  dogs.db  database to just the  root user : \n                 {\n    \"databases\": {\n        \"dogs\": {\n            \"queries\": {\n                \"add_name\": {\n                    \"sql\": \"INSERT INTO names (name) VALUES (:name)\",\n                    \"write\": true,\n                    \"allow\": {\n                        \"id\": [\"root\"]\n                    }\n                }\n            }\n        }\n    }\n}", "[\"Authentication and permissions\", \"Configuring permissions in metadata.json\"]", "[]"]], "columns": ["id", "page", "ref", "title", "content", "breadcrumbs", "references"], "primary_keys": ["id"], "primary_key_values": ["authentication:authentication-permissions-query"], "units": {}, "query_ms": 1.5304100088542327}