Debian Codegraph @

tests/plugins/sleep_sql_function.py

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