mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Remove undocumented sqlite_functions mechanism, closes #1567
This commit is contained in:
parent
0c91e59d2b
commit
c35b84a2aa
3 changed files with 7 additions and 4 deletions
7
tests/plugins/sleep_sql_function.py
Normal file
7
tests/plugins/sleep_sql_function.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from datasette import hookimpl
|
||||
import time
|
||||
|
||||
|
||||
@hookimpl
|
||||
def prepare_connection(conn):
|
||||
conn.create_function("sleep", 1, lambda n: time.sleep(float(n)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue