From db2321cb5743e2b09abe8ec184c0b500c0e3bcb3 Mon Sep 17 00:00:00 2001 From: Oleg Laktyushkin Date: Mon, 4 Nov 2024 18:08:12 +0300 Subject: [PATCH] added `Do` method for raw query by single conn from `pool.Conn()` --- universal.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/universal.go b/universal.go index f4d2d759..634dacb5 100644 --- a/universal.go +++ b/universal.go @@ -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)