Summary
Please add support for SQLite's authorizer callback (sqlite3_set_authorizer) to the JDBC driver. As far as I can tell it isn't currently exposed in any form.
Use case
I'd like to enforce per-table access control on a single connection: deny both reads and writes to a set of privileged tables (e.g. a sys_ prefix) while allowing normal access to the rest. The authorizer is the SQLite mechanism designed for this — it gates reads as well as writes, pre-execution, and applies even when tables are accessed indirectly through views, subqueries, or triggers.
Note
This would follow the same precedent as the existing callback hooks already exposed by the driver (busy handler, progress handler, commit/update listeners).
Version: observed against 3.53.2.
Summary
Please add support for SQLite's authorizer callback (
sqlite3_set_authorizer) to the JDBC driver. As far as I can tell it isn't currently exposed in any form.Use case
I'd like to enforce per-table access control on a single connection: deny both reads and writes to a set of privileged tables (e.g. a
sys_prefix) while allowing normal access to the rest. The authorizer is the SQLite mechanism designed for this — it gates reads as well as writes, pre-execution, and applies even when tables are accessed indirectly through views, subqueries, or triggers.Note
This would follow the same precedent as the existing callback hooks already exposed by the driver (busy handler, progress handler, commit/update listeners).
Version: observed against 3.53.2.