zonkyio / embedded-postgres

Java embedded PostgreSQL component for testing
Apache License 2.0
352 stars 47 forks source link

How to do transaction control #49

Closed arthuronunes closed 3 years ago

arthuronunes commented 3 years ago

How do I do tests that use transaction control with commit and rollback? Although I change the autocommit setting to false, the instructions that are executed are commited automatically.

tomix26 commented 3 years ago

This library does not control transactions in any way. So you can use standard mechanisms to control them.