Skip to content

Transactions are not safe or contained. #8

Description

@raycmorgan

Add support for transactions. To do this properly sqlbox needs to make use of client pools.

.save() is wrapped in a transaction. Currently it does not ensure that during the save process it is the only one using a given connection. This leads to other non-related queries happening between the BEGIN and COMMIT to be batched as part of the transaction. This is worsened when a transaction rolls back and those queries are lost.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions