mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Warn that execute_write_fn(fn) should be a non-async function
This commit is contained in:
parent
d57ab156b3
commit
b28b6cd2fe
1 changed files with 4 additions and 0 deletions
|
|
@ -664,6 +664,10 @@ This method works like ``.execute_write()``, but instead of a SQL statement you
|
|||
|
||||
The function can then perform multiple actions, safe in the knowledge that it has exclusive access to the single writable connection as long as it is executing.
|
||||
|
||||
.. warning::
|
||||
|
||||
``fn`` needs to be a regular function, not an ``async def`` function.
|
||||
|
||||
For example:
|
||||
|
||||
.. code-block:: python
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue