From f7213bc8d786c621801e8735b402e3d064cfe217 Mon Sep 17 00:00:00 2001 From: azw Date: Sun, 20 Aug 2023 13:20:38 +0800 Subject: [PATCH] 1 --- dbpool.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dbpool.go b/dbpool.go index 2aeda8d..5db62ff 100644 --- a/dbpool.go +++ b/dbpool.go @@ -6,13 +6,15 @@ import ( "strings" ) +type DBStyle int32 + const ( - GO_STYLE_DB = 1 - JS_STYLE_DB = 2 + GO_STYLE_DB DBStyle = iota + JS_STYLE_DB ) type dbPool struct { - style int32 + style DBStyle dataSourceHash map[string]*q5.Mysql }