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 }