ah-sequelize-plugin
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -10,46 +10,35 @@ exports.default = { | ||
"password" : "", | ||
} | ||
}; | ||
} | ||
} | ||
}; | ||
// You can define even more elaborate configurations (including replication). | ||
// See http://sequelize.readthedocs.org/en/latest/api/sequelize/index.html for more information | ||
// For example: | ||
exports.test = { | ||
sequelize: function(api){ | ||
return { | ||
"logging" : false, | ||
"database" : "TEST_DB", | ||
"dialect" : "mysql", | ||
"port" : 3306, | ||
"host" : "127.0.0.1", | ||
"username" : "root", | ||
"password" : "", | ||
} | ||
} | ||
} | ||
exports.production = { | ||
sequelize: function(api){ | ||
return { | ||
"logging" : false, | ||
"database" : "PRODUCTION_DB", | ||
"dialect" : "mysql", | ||
"port" : 3306, | ||
"replication" : { | ||
"write": { | ||
"host" : "127.0.0.1", | ||
"username" : "root", | ||
"password" : "", | ||
"pool" : {} | ||
}, | ||
"read": [ | ||
{ | ||
"host" : "127.0.0.1", | ||
"username" : "root", | ||
"password" : "", | ||
"pool" : {} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
// exports.production = { | ||
// sequelize: function(api){ | ||
// return { | ||
// "logging" : false, | ||
// "database" : "PRODUCTION_DB", | ||
// "dialect" : "mysql", | ||
// "port" : 3306, | ||
// "replication" : { | ||
// "write": { | ||
// "host" : "127.0.0.1", | ||
// "username" : "root", | ||
// "password" : "", | ||
// "pool" : {} | ||
// }, | ||
// "read": [ | ||
// { | ||
// "host" : "127.0.0.1", | ||
// "username" : "root", | ||
// "password" : "", | ||
// "pool" : {} | ||
// } | ||
// ] | ||
// } | ||
// } | ||
// } | ||
// } |
@@ -5,3 +5,3 @@ { | ||
"description": "I use sequelize in actionhero as an ORM", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"homepage": "http://actionherojs.com", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -12,2 +12,3 @@ # ah-sequelize-plugin | ||
- you will need to add the mysql (or other supported database) package (`npm install mysql --save`) to your package.json | ||
- there are many options you can pass to sequelize. You can learn more here: http://sequelize.readthedocs.org/en/latest/api/sequelize/index.html | ||
@@ -14,0 +15,0 @@ A `./config/sequelize.json` file will be created which will store your database configuration |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9204
140
128