co-mysql
a mysql wrapper for co or koa
Last updated 11 years ago by coderhaoxin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install co-mysql 
SYNC missed versions from official npm registry.

Please use modules thunkify or promisify directly.

NPM version Build status Test coverage License Dependency status

usage

var wrapper = require('co-mysql'),
  mysql = require('mysql'),
  co = require('co');

var pool = mysql.createPool(options),
  p = wrapper(pool);

// promise
p.query('SELECT 1').then(...).catch(...);

// co
co(function*() {
  var rows = yield p.query('SELECT 1');
})();

License

MIT

Current Tags

  • 1.0.0                                ...           latest (11 years ago)

9 Versions

  • 1.0.0                                ...           11 years ago
  • 0.4.1                                ...           12 years ago
  • 0.4.0                                ...           12 years ago
  • 0.3.1                                ...           12 years ago
  • 0.3.0                                ...           12 years ago
  • 0.2.0                                ...           12 years ago
  • 0.0.3                                ...           12 years ago
  • 0.0.2                                ...           12 years ago
  • 0.0.1                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (4)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |