☰
Debian Codegraph
@
0.65.5+ds-1
0.65.3+ds-1
/
/
tests
/
plugins
/
sleep_sql_function.py
☽
☼
tests/plugins/sleep_sql_function.py
code
plain
raw
Apache-2.0
2017-2026 Simon Willison
debian/copyright
1
from datasette import hookimpl
2
import time
3
4
5
@hookimpl
6
def prepare_connection(conn):
7
conn.create_function("sleep", 1, lambda n: time.sleep(float(n)))