1
0
Fork 0
golang-github-pocketbase-dbx/tx.go
Daniel Baumann 02cacc5b45
Adding upstream version 1.11.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-05-22 10:43:26 +02:00

23 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()
}