// BeginTxx begins a transaction and returns an *sqlxx.Tx instead of an *sqlx.Tx.
BeginTxx begins a transaction and returns an *sqlxx.Tx instead of an *sqlx.Tx.
// BeginTxx begins a transaction and returns an * sqlxx . Tx instead of an * sqlx . Tx .
func (db *DB) BeginTxx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) {
	tx, err := db.DB.BeginTxx(ctx, opts)
	if err != nil {
		return nil, err
	}
	return &Tx{Tx: tx}, nil
}
func ( db * DB ) BeginTxx ( ctx context . Context , opts * sql . TxOptions ) ( * Tx , error ) { tx , err := db . DB . BeginTxx ( ctx , opts ) if err != nil { return nil , err } return & Tx { Tx : tx } , nil }
BeginTxx begins a transaction and returns an *sqlxx.Tx instead of an *sqlx.Tx.
BeginTxx begins a transaction and returns an * sqlxx . Tx instead of an * sqlx . Tx .