1.0.0 • Published 9 years ago

steeplejack-mysql v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Steeplejack MySQL

Node.js Version Build Status Dependencies Dev Dependencies License

A MySQL strategy for Steeplejack projects

Usage

This is a very thin wrapper for the MySQL library. It configures a pooled instance of the MySQL driver, promisified using Bluebird

This configures a Steeplejack injectable module called $mysqlDriver.

// Configure a factory dependency
export const __factory = {
    name: "$mysqlResource",
    factory: ($mysqlDriver) => {

        const config = {}

        return $mongodbDriver(config);

    }
};

The config accepts any of the Pool Options

Dependencies

This requires an object called StoreError to be registered to the Dependency Injector. You can either create your own or use the Steeplejack Errors package

1.0.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago