mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 20:32:35 +02:00
15 lines
220 B
Go
15 lines
220 B
Go
package database
|
|
|
|
import "database/sql"
|
|
|
|
type dbtransaction struct {
|
|
c *sql.Tx
|
|
}
|
|
|
|
func (tx *dbtransaction) Commit() error {
|
|
return tx.c.Commit()
|
|
}
|
|
|
|
func (tx *dbtransaction) Rollback() error {
|
|
return tx.c.Rollback()
|
|
}
|