# mysql_promise

> extremely easy to query mysql server based on promise

Latest version **1.0.2** (published 2016-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install mysql_promise
pnpm add mysql_promise
yarn add mysql_promise
bun add mysql_promise
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-06-29 |
| First published | 2016-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zhaosiyang |
| Maintainers | zhaosiyang |
| Keywords | mysql, promise, easy, pool |

## Links

- npm: https://www.npmjs.com/package/mysql_promise
- Repository: https://github.com/zhaosiyang/mysql_promise
- Homepage: https://github.com/zhaosiyang/mysql_promise#readme
- Issues: https://github.com/zhaosiyang/mysql_promise/issues
- npm.io page: https://npm.io/package/mysql_promise

## Dependencies (1)

- [mysql](https://npm.io/package/mysql.md) ^2.11.1

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-06-29
- 1.0.1 — 2016-06-29
- 1.0.0 — 2016-06-29

## README

# mysql_promise
an extremely easy way to send query to mysql server based on promise

## Installation
`npm install mysql_promise --save`

## step 1: config
```
var query = mysql.config({
	host: "mydatabase.example.com",
    user: "myusername",
    password: "mypass",
    database: "DB1"
});
```

## step 2: query
```
var min_age = 10;
var gender = 'Male';
query('SELECT * FROM USER WHERE age > ? AND sex = ?', [min_age, gender])
	.then(function(rows){
		console.log(rows);
	})
	.catch(function(err){
		console.log(err);
	});
```

---
_Source: https://npm.io/package/mysql_promise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
