From 194ae928d4d6835566b298986ce3f5d4c3c25612 Mon Sep 17 00:00:00 2001 From: yedf2 <120050102@qq.com> Date: Fri, 15 Oct 2021 16:43:00 +0800 Subject: [PATCH] add SetCurrentDBType --- dtmgrpc/type.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dtmgrpc/type.go b/dtmgrpc/type.go index 8ff2d23..a2d3042 100644 --- a/dtmgrpc/type.go +++ b/dtmgrpc/type.go @@ -94,3 +94,8 @@ func Result2Error(res interface{}, err error) error { } return e } + +// SetCurrentDBType set the current db type +func SetCurrentDBType(dbType string) { + dtmcli.SetCurrentDBType(dbType) +}