Table.insert() documentation does not state it will commit any on-going transaction. This happens inside insert_chunks() when using the sqlite connection as a context manager.
This turned out to be an issue in my code where I use manual transaction control, where insert() commits the transaction earlier than I expected.