Skip to content

feat: add support for sqlite3_set_authorizer - #1522

Open
GBujak wants to merge 1 commit into
xerial:masterfrom
GBujak:master
Open

GBujak wants to merge 1 commit into
xerial:masterfrom
GBujak:master

Conversation

@GBujak

@GBujak GBujak commented Nov 18, 2026

Copy link
Copy Markdown

Expose SQLite's authorizer callback via org.sqlite.Authorizer (setAuthorizer / clearAuthorizer). The authorizer is connection-scoped, cleared on close, and fails closed (SQLITE_DENY) if the callback throws. Arguments are decoded as standard UTF-8. Lifecycle, threading and error mapping are documented on the class.

BACKUP/RESTORE extended commands are not covered by the authorizer, as they use the backup API rather than preparing SQL.

closes #1429

Expose SQLite's authorizer callback via org.sqlite.Authorizer
(setAuthorizer / clearAuthorizer). The authorizer is connection-scoped,
cleared on close, and fails closed (SQLITE_DENY) if the callback throws.
Arguments are decoded as standard UTF-8. Lifecycle, threading and error
mapping are documented on the class.

BACKUP/RESTORE extended commands are not covered by the authorizer, as
they use the backup API rather than preparing SQL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: support for SQLite's authorizer (sqlite3_set_authorizer)

1 participant