Theoretically this should be done in a batch (where a batch using the DO SQLite API is just semicolo

Theoretically this should be done in a batch (where a batch using the DO SQLite API is just semicolon-seperated statements I believe), and if it's done in a batch then yes it's automatically done as part of a SQLite transaction and would be rolled back.
Was this page helpful?