
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A sync tool for MySQL database schema
dbqp may help you dump database schema, diff (even sychronise directly) schemas of two databases.
Name dbqp is made up of abbreviation word db and its reflection qp.

dbqp offers both API and CLI.
When installed globally, dbqp generates a homonymic command help you to manage database schema in command line.
# Install globally.
npm install -g dbqp
# Dump schema of database "employees".
dbqp dump --host localhost --user root --password root --database employees
Run dbqp help for entire manual.
Of course, you can require dbqp into your Node.js program.
const dbqp = require('dbqp');
let conn = new dbqp.Connection({
host: 'localhost',
port: 3306,
user: 'root',
password: 'root',
});
conn.dump('employees', (err, metaJson) => {
// ...
});
conn.diff('employeesCopy', 'employees', (err, SQLs) => {
// ...
});
Sub module of dbqp may be required as standalone module for specified task.
const dump = require('dbqp/mysql/dump');
const conn = {
host: 'localhost',
port: 3306,
user: 'root',
password: 'root',
};
dump(conn, 'employees', (err, metaJson) => {
// ...
});
const Connection = require('dbqp').Connection;
See also API Parameters.
const dump = require('dbqp/mysql/dump');
See also API Parameters, dbqp Dump for MySQL.
const diff = require('dbqp/mysql/diff');
See also API Parameters, dbqp Diff for MySQL.
const sync = require('dbqp/mysql/sync');
See also API Parameters.
connOptions Object
Contains necessary parameters required to connect to a MySQL server.
{
host, /* string DEFAULT 'localhost' */
port, /* number DEFAULT 3306 */
user, /* string */
password, /* string */
}
callback Function(Error, any)
Suppose that you are in charge of maintaining an application which depending on a database.
In first edition v1.0, a SQL file 1.0.sql offered to initialize the database.
In second edition v2.0, something changed in database. A new SQL file 2.0.sql offered to initialize the database. However, to help early users of v1.0 to upgrade their existing databases, another upgrade-from-1.0.sql is necessary.
In third edition v3.0, more changes happened. You have to offer following SQL files:
3.0.sql for new users.uprade-from-2.0.sql for early users of v2.0.uprade-from-1.0.sql for early users of v1.0.When more and more editions released, it is really difficult to maintain more and more SQL files.
---- It can be easy with dbqp. ----
dbqp dump to create schema.json which will be delivered to your users.dbqp sync to make your database ready. Of course, you should create an empty database if it not exists.FAQs
A sync tool for MySQL database schema
We found that dbqp 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.