-
Notifications
You must be signed in to change notification settings - Fork 13
Database groups #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Database groups #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Thanks for contributing! 👍 How about keeping the camelCase for the JSON? I added suggestions for how to do it in the struct, but will require changes on the example. Otherwise do merge it.
const DefaultMaxAppServerConnections = 5 | ||
|
||
type settings struct { | ||
MaxAppServerConnections int64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MaxAppServerConnections int64 | |
MaxAppServerConnections int64 `json:"maxAppServerConnections"` |
|
||
type settings struct { | ||
MaxAppServerConnections int64 | ||
Databases map[string]database |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Databases map[string]database | |
Databases map[string]database `json:"databases"` |
type settings struct { | ||
MaxAppServerConnections int64 | ||
Databases map[string]database | ||
DatabaseGroups map[string][]string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DatabaseGroups map[string][]string | |
DatabaseGroups map[string][]string `json:"databaseGroups"` |
Main feature: configure groups of databases, include/exclude groups of database. See updated README for usage.
Other changes: