From 986829b51e5d65225274794ac940830e11941f85 Mon Sep 17 00:00:00 2001 From: Martin Angers Date: Mon, 9 Mar 2015 13:17:28 -0400 Subject: [PATCH] expose sql.Tx.Exec on jet.Tx --- tx.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tx.go b/tx.go index 7124808..ac00ff1 100644 --- a/tx.go +++ b/tx.go @@ -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 {