Skip to content

NewRedo/db-config-json

Repository files navigation

db-config-json

Read a specific style of configuration file.

{
  "database": {
    "host": "host",
    "username": "username",
    "password": "password",
    "database": "database",
    "db1": {
      "username": "username1",
      "password": "password1",
      "database": "database1"
    },
    "db2": {
      "host": "host2",
      "username": "username2",
      "password": "password2",
      "database": "database2"
    }
  }
}

For a given database name, first the items at the lowest level are used, defaulting to the items at the top if there is no match.

About

Read a specific style of configuration file.

Resources

Stars

Watchers

Forks

Packages

No packages published