good morning!!!!

Skip to content
Snippets Groups Projects
Commit 9125e7e9 authored by Arturo Vergara's avatar Arturo Vergara
Browse files

fixes #237; fixes #240

parent dbae96ae
No related branches found
No related tags found
No related merge requests found
......@@ -33,3 +33,15 @@ type tx struct {
var (
_ = db.Tx(&tx{})
)
func (t *tx) Commit() error {
sess := t.Session()
defer sess.Close()
return t.DatabaseTx.Commit()
}
func (t *tx) Rollback() error {
sess := t.Session()
defer sess.Close()
return t.DatabaseTx.Rollback()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment