1.1.2 • Published 4 years ago

mysql-async-adapter v1.1.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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') 
1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago