adocker-mysql
Docker mysql utility
Last updated a month ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install adocker-mysql 
SYNC missed versions from official npm registry.

adocker-mysql

Build Status npm Version JS Standard

Docker mysql utility

Installation

$ npm install adocker-mysql --save

Usage

'use strict'

const adockerMysql = require('adocker-mysql')

const mysql = adockerMysql('my-mysql-container-01', {
  onError: (err) => {
    // Error handler for each commands
    console.error(err)
    process.exit(1)
  }
})

const {run, start, stop, remove, logs} = mysql.cli()
;(async () => {
  await run()
  /* ... */
  await logs()
  /* ... */
  await stop()
  /* ... */
  await start()

  await remove({force: true})
})()

License

This software is released under the MIT License.

Links

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 112
Dependencies (2)
Dev Dependencies (9)

Copyright 2014 - 2017 © taobao.org |