mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
named_parameters(sql) sync function, refs #2354
Also refs #2353 and #2352
This commit is contained in:
parent
b39b01a890
commit
d118d5c5bb
4 changed files with 37 additions and 20 deletions
|
|
@ -1256,14 +1256,14 @@ Utility function for calling ``await`` on a return value if it is awaitable, oth
|
|||
|
||||
.. autofunction:: datasette.utils.await_me_maybe
|
||||
|
||||
.. _internals_utils_derive_named_parameters:
|
||||
.. _internals_utils_named_parameters:
|
||||
|
||||
derive_named_parameters(db, sql)
|
||||
--------------------------------
|
||||
named_parameters(sql)
|
||||
---------------------
|
||||
|
||||
Derive the list of named parameters referenced in a SQL query, using an ``explain`` query executed against the provided database.
|
||||
Derive the list of ``:named`` parameters referenced in a SQL query.
|
||||
|
||||
.. autofunction:: datasette.utils.derive_named_parameters
|
||||
.. autofunction:: datasette.utils.named_parameters
|
||||
|
||||
.. _internals_tilde_encoding:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue