Skip to content

prepare_connection() plugin hook should accept optional datasette argument #678

@simonw

Description

@simonw

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 the prepare_connection(conn) hook. But that hook doesn't currently get passed datasette so it doesn't have a way of looking up its plugin configuration!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions