mysql-async-adapter
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

MySQL async adapter

The adapter for working with the MySQL database through promises

Install

npm install mysql-async-adapter

Usage

const MySQLAsyncAdapter = require('mysql-async-adapter')

The function Open is async.

this.db = await new MySQLAsyncAdapter({ ... }).open()

Use the following example to call a query to the database.

const res = await this.mysql.query('SELECT 1 as id')
assert(res[0].id == '1') 

Readme

Keywords

Package Sidebar

Install

npm i mysql-async-adapter

Weekly Downloads

2

Version

1.1.2

License

ISC

Unpacked Size

6.01 kB

Total Files

5

Last publish

Collaborators

  • pikada-lab