Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (18 sloc) 0.572 kb

ee-config

gets & sets config values from a mysql db. depeds on a config file ( config.js in the project root )

var config = require( "ee-config" );

config.get( "key" ); config.set( "key", "value" );

config file:

module.exports = {
      database:         "dbName"
    , hosts: [
        {
              host:     "1dbHsot"
            , user:     "dbUser"
            , password: "dbPass"
            , weight:   "optional int ( used for load balancing )"
            , writable: true
        }
    ]
};
Jump to Line
Something went wrong with that request. Please try again.