better-mysql2

1.0.0 • Public • Published

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);

Package Sidebar

Install

npm i better-mysql2

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

9.91 kB

Total Files

6

Last publish

Collaborators

  • romanmender