1.0.1 • Published 6 years ago

mysql-simple-wrapper v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

mysql-simple-wrapper

npm link

Simple and easy mysql query function

Installing

npm install mysql-simple-wrapper

Usage

You first have to call the createPool function and supply it with the information needed before you can use the query function

const db = require('mysql-simple-wrapper');

// Create the pool with the needed information
db.createPool(connectionLimit, host, user, password, database);

// Now query can be used
let result = db.query(`SELECT * FROM Logs`);
1.0.1

6 years ago