mirror of
https://github.com/simonw/datasette.git
synced 2026-09-27 20:34:08 +02:00
Update parameters/query operations as user edits the write query
Refs #2742
This commit is contained in:
parent
abb17ba773
commit
e1261442c0
5 changed files with 476 additions and 73 deletions
|
|
@ -528,6 +528,7 @@ Creating saved queries
|
|||
``POST /<database>/-/queries/-/insert`` creates a saved query. This requires ``execute-sql`` and ``insert-query`` for the database.
|
||||
|
||||
.. _ExecuteWriteView:
|
||||
.. _ExecuteWriteAnalyzeView:
|
||||
|
||||
Executing write SQL
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
|
@ -536,6 +537,8 @@ Executing write SQL
|
|||
|
||||
``POST /<database>/-/execute-write`` executes writable SQL. This requires ``execute-write-sql`` for the database plus the relevant table-level write permissions.
|
||||
|
||||
``POST /<database>/-/execute-write/-/analyze`` accepts ``{"sql": "..."}`` and returns the derived parameters plus the write operations that SQL would need in order to execute.
|
||||
|
||||
.. _QueryDefinitionView:
|
||||
|
||||
Getting a saved query definition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue