added `Do` method for raw query by single conn from `pool.Conn()`

This commit is contained in:
Oleg Laktyushkin 2024-11-04 18:08:12 +03:00
parent 1ed936eb09
commit db2321cb57
1 changed files with 6 additions and 0 deletions

View File

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