mirror of
https://github.com/simonw/datasette.git
synced 2026-06-03 07:37:00 +02:00
Rename insert-query to store-query
Also queries/insert to queries/store Refs https://github.com/simonw/datasette/pull/2741#issuecomment-4549103663
This commit is contained in:
parent
180a6a86fd
commit
24887004cf
7 changed files with 47 additions and 40 deletions
|
|
@ -1293,11 +1293,12 @@ Actor is allowed to view a saved query page, e.g. https://latest.datasette.io/fi
|
|||
``query`` is the name of the query (string)
|
||||
|
||||
.. _actions_insert_query:
|
||||
.. _actions_store_query:
|
||||
|
||||
insert-query
|
||||
------------
|
||||
store-query
|
||||
-----------
|
||||
|
||||
Actor is allowed to create saved queries in a database.
|
||||
Actor is allowed to create stored queries in a database.
|
||||
|
||||
``resource`` - ``datasette.resources.DatabaseResource(database)``
|
||||
``database`` is the name of the database (string)
|
||||
|
|
|
|||
|
|
@ -518,14 +518,15 @@ Listing saved queries
|
|||
Creating saved queries in the UI
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
``GET /<database>/-/queries/-/create`` provides a form for creating saved queries.
|
||||
``GET /<database>/-/queries/store`` provides a form for creating stored queries.
|
||||
|
||||
.. _QueryStoreView:
|
||||
.. _QueryInsertView:
|
||||
|
||||
Creating saved queries
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
``POST /<database>/-/queries/insert`` creates a saved query. This requires ``execute-sql`` and ``insert-query`` for the database.
|
||||
``POST /<database>/-/queries/store`` creates a stored query. This requires ``execute-sql`` and ``store-query`` for the database.
|
||||
|
||||
.. _QueryParametersView:
|
||||
.. _ExecuteWriteView:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue