Skip to content
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

Create saved_queries table plus a canned query that writes to it #1

Closed
simonw opened this issue Jun 20, 2020 · 1 comment
Closed

Create saved_queries table plus a canned query that writes to it #1

simonw opened this issue Jun 20, 2020 · 1 comment

Comments

@simonw
Copy link
Owner

simonw commented Jun 20, 2020

Plugin idea: datasette-saved-queries - it uses the startup hook to initialize a saved_queries table, then uses the canned_queries hook to add a writable canned query for saving records to that table.

Then it returns any queries from that table as additional canned queries.

Bonus idea: it could write the user's actor_id to a column if they are signed in, and provide a link to see "just my saved queries" in that case.
Originally posted by @simonw in simonw/datasette#852 (comment)

@simonw
Copy link
Owner Author

simonw commented Jun 20, 2020

First bit I'm going to implement is the startup hook that creates the tables and the canned query that lets users save a query.

@simonw simonw changed the title Initial plugin design Create saved_queries table plus a canned query that writes to it Jun 20, 2020
simonw added a commit that referenced this issue Jun 20, 2020
@simonw simonw closed this as completed Jun 20, 2020
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

No branches or pull requests

1 participant