1
0
Fork 0

Adding upstream version 1.11.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-22 10:43:26 +02:00
parent 40df376a7f
commit 02cacc5b45
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
37 changed files with 7317 additions and 0 deletions

23
tx.go Normal file
View file

@ -0,0 +1,23 @@
// 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()
}