mysql-plugin
v1.2.5
Published
A fully featured MySql client 'mysql' with Promise support. Powered by Bluebird.
Downloads
8
Readme
MySql Plugin
A fully featured MySql client 'mysql' with Promise support. Powered by Bluebird.
Install
$ npm i mysql-plugin --save
Configuration
require("mysql-plugin").init({
host: MYSQL_HOST,
user: MYSQL_USER,
password: MYSQL_PASSWORD,
database: MYSQL_DATABASE
});
Usage
const MySql = require("mysql-plugin");
void async function main(){
await MySql.query("SELECT * FROM some_table");
}();