
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
mysql-deploy
Advanced tools
Deploys your schema changes and routines, it versions all your changes and roles back failed routines to previous versions
This useful little package takes the pain out of updating keeping your database up to date, whether in the development environent or production.
npm install mysql-deploy --save
Call scriptDeploy method at the end of your main script before your app finishes starting. In an ExpressJS app I place the app.listen() inside the callback function so my server won't start untill all the scripts have deployed.
var scriptDeploy = require('mysql-deploy ');
var options = {
host : 'example_host',
port : 33306,
user : 'username',
password : 'password',
database : 'example_database',
schemaLocation : path.join(__dirname, 'databaseScripts', 'schemaScripts'),
routinesLocation : path.join(__dirname, 'databaseScripts', 'routineScripts')
};
scriptDeploy(options, function(err) {
if (err) throw err;
app.listen(3000);
});
All schema scripts should be placed in the folder specified by the schemaLocation option.
All routines should be places in the folder specified by the routinesLocation option.
DELIMETER syntax in your routines, it is not only unnecessary but will cause the scripts to fail.Example syntax for function script
CREATE FUNCTION SqrRt (x1 decimal, y1 decimal)
RETURNS decimal
DETERMINISTIC
BEGIN
DECLARE dist decimal;
SET dist = SQRT(x1 - y1);
RETURN dist;
END
If the database name in the database options does not exist, mysql-deploy will attempt to create it. If it fails for any reason, lack of permissions or incorrect connection details, it will halt and no futher scripts will run.
mysql-deploy creates 3 tables the first time you run it in an app. These table will live on the database named in the database option. They are used to track the versions of the schema scripts, functions and stored procedures. It is best to avoid modifying or manually adding any data in these tables.
These tables are:
When running, mysql-deploy locks itself to prevent other instances of mysql-deploy from running at the same time. This lock only lasts for two minutes so please be patient.
FAQs
Deploys your schema changes and routines, it versions all your changes and roles back failed routines to previous versions
The npm package mysql-deploy receives a total of 9 weekly downloads. As such, mysql-deploy popularity was classified as not popular.
We found that mysql-deploy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Google’s UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.