sections: internals:datasette-update-query
This data as json
| id | page | ref | title | content | breadcrumbs | references |
|---|---|---|---|---|---|---|
| internals:datasette-update-query | internals | datasette-update-query | await .update_query(database, name, ...) | Updates fields for an existing stored query. Only keyword arguments that are provided will be changed. The available keyword arguments are the same as those for await .add_query(database, name, sql, ...) , except for replace . Pass None to clear optional text fields and options such as on_success_redirect . Passing hide_sql=False removes the hide_sql option. Example: await datasette.update_query( database="fixtures", name="recent_rows", title="Latest rows", is_private=True, owner_id="alice", ) | ["Internals for plugins", "Datasette class", "Stored queries"] | [] |