
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
simple-sql-orm
Advanced tools
npm install simple-sql-orm
const { ORM } = require("simple-sql-orm")
let orm = new ORM("localhost", "dbname")
ORM(host, db, user="root", password="", port = 3306)
let orm = new ORM("localhost", "mydb", 'root', "mypass", 3306)
orm.table("users").get()
SELECT * FROM `users`
return data rows
orm.table("users").where("id", '5').get()
SELECT * FROM `users` WHERE `users`.`id` = 5
orm.table("users").where("id", ['5', '6']).get()
SELECT * FROM `users` WHERE `users`.`id` IN ('5', '6')
return data rows
orm.table("users").select("id", "name", ["username", "um"]).get()
SELECT `users`.`id`, `users`.`name`, `users`.`username` AS `um` FROM `users`
return data rows
orm.table("users").select("id", "name").count()
SELECT COUNT(*) AS cnt FROM `users`
return count result
orm.table("users").where("id", 5).delete()
DELETE FROM `users` WHERE `users`.`id` = '5'
return count deleted
orm.table("users").where("id", 5).orderBy('id', 'asc').get()
SELECT * FROM `users` WHERE `users`.`id` = '5' ORDER BY `users`.`id` ASC
return data rows
orm.table("users").where("id", 5).groupBy('first_name').get()
SELECT * FROM `users` WHERE `users`.`id` = '5' GROUP BY `users`.`id`
return data rows
orm.table("users").skip(10).take(10).get()
SELECT * FROM `users` LIMIT 10, 10
return data rows from 11th to 20th
orm.table("users").max('id')
orm.table("users").min('id')
orm.table("users").avg('id')
orm.table("users").sum('id')
SELECT MAX(`users`.`id`) AS RES FROM `users`
return value of RES
{ ORM, QueryTypes } = require("simple-sql-orm")
let orm = new ORM("localhost", "simply")
const result = orm.query("SELECT * FROM `users`");
const result = orm.query("SELECT * FROM `users`", QueryTypes.SELECT);
let orm = new ORM("localhost", "simply")
orm.table("users");
const userids = ['simple', "orm"];
const len = userids.length;
for(let i = 0; i < len; i ++) {
orm.orWhere("userid", userids[i]);
}
const res = orm.get();
SELECT `users`.* FROM `users` WHERE `users`.`userid` = 'simple' OR `users`.`userid` = 'orm'
orm.table("users").where("firstname", "simple").and(ORM.where("id", 1, ">").where("id", 5, "<")).get()
SELECT `users`.* FROM `users` WHERE `users`.`firstname` = 'simple' AND (`users`.`id` > '1' AND `users`.`id` < '5')
FAQs
SQL ORM
We found that simple-sql-orm 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
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.