Skip to content

Commit db2321c

Browse files
author
Oleg Laktyushkin
committed
added Do method for raw query by single conn from pool.Conn()
1 parent 1ed936e commit db2321c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

universal.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,12 @@ type UniversalClient interface {
228228
PoolStats() *PoolStats
229229
}
230230

231+
func (c cmdable) Do(ctx context.Context, args ...interface{}) *Cmd {
232+
cmd := NewCmd(ctx, args)
233+
_ = c(ctx, cmd)
234+
return cmd
235+
}
236+
231237
var (
232238
_ UniversalClient = (*Client)(nil)
233239
_ UniversalClient = (*ClusterClient)(nil)

0 commit comments

Comments
 (0)