simple-pool-mysql

0.2.0 • Public • Published

GitHub issues GitHub

LICENSE

MIT

GOAL

simple pool mysql

INSTALL

npm i simple-pool-mysql

HOW TO USE

const mysql = new Mysql({
    default: { host: 'localhost', user: 'root', password: 'root', database: 'test' },
    test: { host: 'localhost', user: 'root', password: 'root', database: 'test' },
});

const data = await mysql.query('SELECT COUNT(1) AS count FROM user');
console.log(data[0].count);

Readme

Keywords

Package Sidebar

Install

npm i simple-pool-mysql

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

7.37 kB

Total Files

7

Last publish

Collaborators

  • uccu