aaberg / sql2o

sql2o is a small library, which makes it easy to convert the result of your sql-statements into objects. No resultset hacking required. Kind of like an orm, but without the sql-generation capabilities. Supports named parameters.
http://sql2o.org
MIT License
1.15k stars 229 forks source link

How can I rollback the data when I was testing by JUnit #302

Closed Magotzis closed 6 years ago

Magotzis commented 6 years ago

I try with @Transaction and @Rollback,but none of them is work.

aaberg commented 6 years ago

Support for @Transaction or @Rollback is not implemented in sql2o. If you want to roll back from a JUnit test, you need to do it manually in your code.