Skip to content

Add :authorizer connection option (#358) - #359

Merged
warmwaffles merged 1 commit into
elixir-sqlite:mainfrom
aaronrussell:main
Sep 10, 2026
Merged

warmwaffles merged 1 commit into
elixir-sqlite:mainfrom
aaronrussell:main

Conversation

@aaronrussell

Copy link
Copy Markdown
Contributor

Allows a deny list to be applied to DBConnection managed connections. The authorizer is installed as the final step of connection setup so it does not interfere with the PRAGMA and load_extension statements issued while connecting.

{:ok, conn} = Exqlite.Connection.connect(
  database: "app.db",
  authorizer: [:attach, :detach]
)
  • Docs added to Exqlite.Connection.connect/1
  • 3 new tests
  • Line added to changelog unreleased section

Allow a deny list to be applied to DBConnection managed connections via Exqlite.Sqlite3.set_authorizer/2. The authorizer is installed as the final step of connection setup so it does not interfere with the PRAGMA and load_extension statements issued while connecting.
@warmwaffles
warmwaffles merged commit dc4aaff into elixir-sqlite:main Sep 10, 2026
9 checks passed
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.

2 participants