Skip to content

Commit

Permalink
Add missing tx.PrepareNamedContext function
Browse files Browse the repository at this point in the history
  • Loading branch information
c4milo committed Jun 18, 2017
1 parent 502e7d6 commit 9afb36a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sqlx_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ func (tx *Tx) PreparexContext(ctx context.Context, query string) (*Stmt, error)
return PreparexContext(ctx, tx, query)
}

// PrepareNamedContext returns an sqlx.NamedStmt
func (tx *Tx) PrepareNamedContext(ctx context.Context, query string) (*NamedStmt, error) {
return prepareNamedContext(ctx, tx, query)
}

// MustExecContext runs MustExecContext within a transaction.
// Any placeholder parameters are replaced with supplied args.
func (tx *Tx) MustExecContext(ctx context.Context, query string, args ...interface{}) sql.Result {
Expand Down

0 comments on commit 9afb36a

Please sign in to comment.