func (tx *Tx) Commit() error {
	err := tx.Tx.Commit()
	if err != nil {
		return tx.EventErr("dbr.commit.error", err)
	}
	tx.Event("dbr.commit")
	return nil
}
Commit finishes the transaction
package dbr
import "database/sql"
type Tx struct {
	*Session
	*sql.Tx
}
func (sess *Session) Begin() (*Tx, error) {
	tx, err := sess.DB.Begin()
	if err != nil {
		return nil, sess.EventErr("dbr.begin.error", err)
	}
	sess.Event("dbr.begin")
	return &Tx{
		Session: sess,
		Tx:      tx,
	}, nil
}