mirror of
https://gitee.com/johng/gf.git
synced 2024-11-29 18:57:44 +08:00
rm .DS_Store
This commit is contained in:
parent
15e7a9b8a8
commit
1ac39cd2e0
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@ gitpush.sh
|
||||
pkg/
|
||||
bin/
|
||||
cbuild
|
||||
*/.DS_Store
|
||||
|
BIN
g/.DS_Store
vendored
BIN
g/.DS_Store
vendored
Binary file not shown.
BIN
g/database/.DS_Store
vendored
BIN
g/database/.DS_Store
vendored
Binary file not shown.
@ -209,12 +209,9 @@ func getConfigNodeByPriority(cg ConfigGroup) *ConfigNode {
|
||||
func newDb(masterNode *ConfigNode, slaveNode *ConfigNode, groupName string) (*Db, error) {
|
||||
var link Link
|
||||
switch masterNode.Type {
|
||||
case "mysql":
|
||||
link = linkMysql
|
||||
case "pgsql":
|
||||
link = linkPgsql
|
||||
case "sqlite":
|
||||
link = linkSqlite
|
||||
case "mysql":link = linkMysql
|
||||
case "pgsql":link = linkPgsql
|
||||
case "sqlite":link = linkSqlite
|
||||
default:
|
||||
return nil, errors.New(fmt.Sprintf("unsupported db type '%s'", masterNode.Type))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user