Skip to content

Commit

Permalink
Added in method
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex committed Jun 6, 2018
1 parent c46a711 commit 1718484
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions transaction_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ func (t *Txm) MustRollback() {
}
}

// In expands slice values in args, returning the modified query string
// and a new arg list that can be executed by a database. The `query` should
// use the `?` bindVar. The return value uses the `?` bindVar.
func In(query string, args ...interface{}) (string, []interface{}, error) {
return sqlxx.In(query, args...)
}

// reset resets some counter for transaction manager.
func (t *Txm) reset() {
t.rollbacked.reset()
Expand Down

0 comments on commit 1718484

Please sign in to comment.