Versions 0.12 and lower do not provide sufficient transaction management. The current strategy is: changes are written to the database until an error occurrs or the process is finished. Using the context manager PocketWriter it would be desirable that each instance of a PocketWriter represented a transaction that is rollbacked when an error occurs.
To be consistent, the "write_buffer_size" should be removed from all API interfaces. As a commit is executed once the write_buffer_size is full, this might lead to confusion with the paradigm of a single commit after the PocketWriter is exited.
Versions 0.12 and lower do not provide sufficient transaction management. The current strategy is: changes are written to the database until an error occurrs or the process is finished. Using the context manager PocketWriter it would be desirable that each instance of a PocketWriter represented a transaction that is rollbacked when an error occurs.
To be consistent, the "write_buffer_size" should be removed from all API interfaces. As a commit is executed once the write_buffer_size is full, this might lead to confusion with the paradigm of a single commit after the PocketWriter is exited.