Files
2016-06-20 22:55:01 -04:00

24 lines
472 B
Go

// Copyright 2016 Qiang Xue. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package dbx
import "database/sql"
// Tx enhances sql.Tx with additional querying methods.
type Tx struct {
Builder
tx *sql.Tx
}
// Commit commits the transaction.
func (t *Tx) Commit() error {
return t.tx.Commit()
}
// Rollback aborts the transaction.
func (t *Tx) Rollback() error {
return t.tx.Rollback()
}