New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

docker-mysql-driver

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-mysql-driver

docker mysql driver for unit test

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

docker-mysql-driver

Feature

  • auto run mysql in docker
  • reinitialize the environment at each start

Usage

  • docker pull mysql image (default: mysql:5.6)

Getting start

const dmd = require('docker-mysql-driver')

const mysqlServer = await dmd.start(options)

console.log(
  mysqlServer.port, // server port
  mysqlServer.rootPwd, // root password
  mysqlServer.database, // database name
)

mysqlServer.stop()

Default Options

{
  image: "mysql:5.6", // mysql docker image
  port: 0, // host port, 0 for random
  rootPwd: "123456", // root password
  reuse: true, // reuse container, container will not be delete if enabled
  name: 'mysql_test', // container name
  database: 'test_db', // database name
  dockerConfig: undefined, // you can see: https://github.com/apocas/dockerode
}

FAQs

Package last updated on 01 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc