better-mysql2-ts
v1.1.1
Published
A Simple mysql Wrapper for javascript, If you want request more features add a feature request on [Github](https://github.com/RomanMender/better-mysql2).
Downloads
17
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);
Documentation
https://romanmender3164.gitbook.io/better-mysql2/