home / docs / sections

sections: internals:database-execute-write-script

This data as json

id page ref title content breadcrumbs references
internals:database-execute-write-script internals database-execute-write-script await db.execute_write_script(sql, block=True) Like execute_write() but can be used to send multiple SQL statements in a single string separated by semicolons, using the sqlite3 conn.executescript() method. Each call to execute_write_script() will be executed inside a transaction. ["Internals for plugins", "Database class"] [{"href": "https://docs.python.org/3/library/sqlite3.html#sqlite3.Cursor.executescript", "label": "conn.executescript()"}]
Powered by Datasette · Queries took 3.28ms