better-mysql2
v1.0.0
Published
Async Mysql2
Downloads
2
Maintainers
Readme
Better-Mysql2
A Simple mysql Wrapper for javascript, If you want request more features add a feature request on Github.
Installation
npm i better-mysql2
Example
const mysql = require("better-mysql2")
var db = new mysql.database({
"host": "host",
"user": "user"
"password": "pass",
"database": "database"
})
const row = db.prepare('SELECT * FROM users WHERE id = ?').get(userId);
console.log(row.firstName, row.lastName, row.email);