Skip to content

query_actions plugin hook - like table_actions and database_actions for the query/canned query page #2283

@simonw

Description

@simonw

I just noticed that this page: https://latest.datasette.io/fixtures?sql=select+*+from+facetable

Doesn't fire the database_actions() plugin hook, and so cannot have extra actions added to it.

I think a query_actions() hook would be good here, similar to table_actions() and database_actions(). It could work for both arbitrary SQL queries and canned queries.

This would enable things like https://datasette.io/plugins/datasette-saved-queries to include a menu item for creating and saving a query.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions