Fixed remaining code and docs for new block=True default, closes #1579

This commit is contained in:
Simon Willison 2021-12-23 11:18:20 -08:00
commit 8c401ee0f0
6 changed files with 19 additions and 39 deletions

View file

@ -770,7 +770,7 @@ Or you can return an async function which will be awaited on startup. Use this o
if "my_table" not in await db.table_names():
await db.execute_write("""
create table my_table (mycol text)
""", block=True)
""")
return inner
Potential use-cases: