This prototype demonstrates how Datasette's permission checking logic (allow blocks) can be implemented entirely in SQLite using JSON functions, without requiring Python logic for the core matching algorithm.
Datasette uses "allow blocks" to control permissions. An allow block is a JSON object that specifies which actors can perform an action: