Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow disabling periodic committing when inserting rows with DbApiHook
``` >>> i = 1 >>> commit_every = 0 >>> bool(i % commit_every == 0) # previously Traceback (most recent call last): File "<stdin>", line 1, in <module> ZeroDivisionError: integer division or modulo by zero >>> bool(commit_every and i % commit_every == 0) # with this change False ```
- Loading branch information