Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ah-sequelize-plugin

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ah-sequelize-plugin - npm Package Compare versions

Comparing version 0.4.2 to 0.5.0

48

config/sequelize.js

@@ -1,19 +0,33 @@

exports.default = {
sequelize: function(api){
return {
"database" : "DEVELOPMENT_DB",
"dialect" : "mysql",
"port" : 3306,
"host" : "127.0.0.1",
"username" : "root",
"password" : "",
};
}
exports.default = {
sequelize: function(api){
return {
"database" : "DEVELOPMENT_DB",
"dialect" : "mysql",
"port" : 3306,
"host" : "127.0.0.1",
"username" : "root",
"password" : ""
};
}
};
// For sequelize-cli
// Add to the exports below, if you have setup additional environment-specific settings
exports.development = exports.default.sequelize();
//exports.test = merge(exports.test);
//exports.production = merge(exports.production);
function merge(overlayFn) {
var mergeObj = {};
for (var attrname in exports.default.sequelize()) { mergeObj[attrname] = exports.default.sequelize()[attrname]; }
if (typeof(overlayFn) !== 'undefined') for (var attrname in overlayFn.sequelize()) { mergeObj[attrname] = overlayFn.sequelize()[attrname]; }
return mergeObj;
}
// 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:
// For example:
// exports.production = {
// exports.production = {
// sequelize: function(api){

@@ -27,4 +41,4 @@ // return {

// "write": {
// "host" : "127.0.0.1",
// "username" : "root",
// "host" : "127.0.0.1",
// "username" : "root",
// "password" : "",

@@ -35,4 +49,4 @@ // "pool" : {}

// {
// "host" : "127.0.0.1",
// "username" : "root",
// "host" : "127.0.0.1",
// "username" : "root",
// "password" : "",

@@ -39,0 +53,0 @@ // "pool" : {}

@@ -5,3 +5,3 @@ {

"description": "I use sequelize in actionhero as an ORM",
"version": "0.4.2",
"version": "0.5.0",
"homepage": "http://actionherojs.com",

@@ -8,0 +8,0 @@ "repository": {

@@ -14,3 +14,3 @@ # ah-sequelize-plugin

A `./config/sequelize.json` file will be created which will store your database configuration
A `./config/sequelize.js` file will be created which will store your database configuration

@@ -17,0 +17,0 @@ ## [Models](http://docs.sequelizejs.com/en/latest/api/models)

@@ -19,9 +19,10 @@ #!/usr/bin/env node

fs.createReadStream(localConfigFile).pipe(fs.createWriteStream(projectConfigFile));
}
try {
fs.lstatSync(projectRcFile);
} catch (ex) {
console.log("copying " + localRcFile + " to " + projectRcFile + " for ");
fs.createReadStream(localRcFile).pipe(fs.createWriteStream(projectRcFile));
// Only try to copy the files required for cli operations if sequelize.js is being newly created.
try {
fs.lstatSync(projectRcFile);
} catch (ex) {
console.log("copying " + localRcFile + " to " + projectRcFile + " for ");
fs.createReadStream(localRcFile).pipe(fs.createWriteStream(projectRcFile));
}
}

@@ -28,0 +29,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc