
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
nodejs-mysql-querybuilder
Advanced tools
npm install nodejs-mysql-querybuilder --save
const QueryBuilder = require('nodejs-mysql-querybuilder');
const db = new QueryBuilder({
host: 'localhost',
user: 'user',
password: 'password',
database: 'database'
});
db.setTable('table');
db.connect();
The select method take one string parameter
db.setTable('users');
db.select('username, password')
.where('id', 12)
.and('mail', 'test@test.com');
db.execute();
const res = db.fetch();
The select method take an object as parameter
db.setTable('users');
db.insert({
username: 'johndoe',
password: 'foobar',
mail: 'johndoe@test.com'
});
db.execute();
The Update method take an object as parameter and need a where filter
db.setTable('users');
db.update({
username: 'johndoe',
password: 'foobar',
mail: 'johndoe@test.com'
});
db.where('id', 12);
db.execute();
The Delete method take two parameters
db.setTable('users');
db.delete('id', 12);
db.execute();
where filter is unique, you need to use and if you need another filter
db.setTable('users');
db.select('username, password').where('id', 12).execute();
let res = db.fetchAll();
db.setTable('users');
db.select('username, password').where('id', 12).and('mail', 'test@test.com').execute();
let res = db.fetchAll();
db.setTable('users');
db.select().where('id', 12).or('mail', 'test@test.com').execute();
let res = db.fetchAll();
db.setTable('users');
db.select('users.username, messages.message')
.join('INNER', 'messages')
.on('messages.iduser', 'users.id');
FAQs
Simple sync-mysql query builder
The npm package nodejs-mysql-querybuilder receives a total of 1 weekly downloads. As such, nodejs-mysql-querybuilder popularity was classified as not popular.
We found that nodejs-mysql-querybuilder 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.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.