diff --git a/core/stores/sqlc/cachedsql.go b/core/stores/sqlc/cachedsql.go index 8b81e9254928..947a2b5f379a 100644 --- a/core/stores/sqlc/cachedsql.go +++ b/core/stores/sqlc/cachedsql.go @@ -88,6 +88,10 @@ func (cc CachedConn) GetCacheCtx(ctx context.Context, key string, v any) error { return cc.cache.GetCtx(ctx, key, v) } +func(cc CachedConn)GetRawConnNoCache()sqlx.SqlConn{ + return cc.db +} + // Exec runs given exec on given keys, and returns execution result. func (cc CachedConn) Exec(exec ExecFn, keys ...string) (sql.Result, error) { execCtx := func(_ context.Context, conn sqlx.SqlConn) (sql.Result, error) {