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
723f4922
authored
Jun 21, 2021
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
bcc1e80a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
app/common/config/http/mysql.go
app/common/config/http/mysql.go
View file @
723f4922
...
...
@@ -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