Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ func (tx *Tx) Query(query string, args ...interface{}) Runnable {
return q
}

// Exec calls Exec on the underlying sql.Tx.
func (tx *Tx) Exec(query string, args ...interface{}) (sql.Result, error) {
return tx.tx.Exec(query, args...)
}

// Commit commits the transaction
func (tx *Tx) Commit() error {
if tx.db.LogFunc != nil {
Expand Down