Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-callback
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bcc1e80a
authored
Jun 18, 2021
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
cbd590b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
app/common/config/task/mysql.go
app/common/config/task/mysql.go
View file @
bcc1e80a
...
...
@@ -35,12 +35,12 @@ func BuildDatabaseList() (DatabaseList map[string]BaseDatabase) {
//主从数据 master slave
func
BuildGroupDatabaseList
()
(
DatabaseList
map
[
string
]
GroupDatabase
)
{
return
map
[
string
]
GroupDatabase
{
"liexin"
:
{
DataSourceName
:
lib
.
Instance
(
"db"
)
.
GetStringSlice
(
"liexin.data_source_name"
),
Prefix
:
lib
.
Instance
(
"db"
)
.
GetString
(
"liexin.table_prefix"
),
MaxIdleCons
:
lib
.
Instance
(
"db"
)
.
GetInt
(
"liexin.max_idle_conn"
),
MaxOpenCons
:
lib
.
Instance
(
"db"
)
.
GetInt
(
"liexin.max_open_conn"
),
},
//
"liexin": {
//
DataSourceName:lib.Instance("db").GetStringSlice("liexin.data_source_name"),
//
Prefix: lib.Instance("db").GetString("liexin.table_prefix"),
//
MaxIdleCons:lib.Instance("db").GetInt("liexin.max_idle_conn"),
//
MaxOpenCons:lib.Instance("db").GetInt("liexin.max_open_conn"),
//
},
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment