-
-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prepare_connection() plugin hook should accept optional datasette argument #678
Comments
While I'm at it, the hook should accept an optional |
simonw
added a commit
to simonw/datasette-mask-columns
that referenced
this issue
Feb 22, 2020
simonw
added a commit
that referenced
this issue
Feb 22, 2020
simonw
added a commit
that referenced
this issue
Feb 22, 2020
Done. Updated documentation is here: https://datasette.readthedocs.io/en/latest/plugins.html#prepare-connection-conn-database-datasette |
Shipped in 0.36 https://datasette.readthedocs.io/en/stable/changelog.html#v0-36 |
simonw
added a commit
that referenced
this issue
Mar 26, 2020
simonw
added a commit
that referenced
this issue
Mar 26, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to build a plugin that allows users to configure certain database columns to be "masked" - so the
password
column on a users table is never revealed, for example.To do this, I need to use the
conn.set_authorizer()
SQLite mechanism. So the plugin needs to build off theprepare_connection(conn)
hook. But that hook doesn't currently get passeddatasette
so it doesn't have a way of looking up its plugin configuration!The text was updated successfully, but these errors were encountered: