Compare commits

...

2 Commits

Author SHA1 Message Date
Oleglacto c4cf6e87fc
Merge db2321cb57 into 080e051124 2024-11-20 13:38:21 +02:00
Oleg Laktyushkin db2321cb57 added `Do` method for raw query by single conn from `pool.Conn()` 2024-11-04 18:08:12 +03:00
1 changed files with 6 additions and 0 deletions

View File

@ -228,6 +228,12 @@ type UniversalClient interface {
PoolStats() *PoolStats
}
func (c cmdable) Do(ctx context.Context, args ...interface{}) *Cmd {
cmd := NewCmd(ctx, args)
_ = c(ctx, cmd)
return cmd
}
var (
_ UniversalClient = (*Client)(nil)
_ UniversalClient = (*ClusterClient)(nil)