Remove undocumented sqlite_functions mechanism, closes #1567

This commit is contained in:
Simon Willison 2021-12-17 17:54:39 -08:00
commit c35b84a2aa
3 changed files with 7 additions and 4 deletions

View 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)))