1.0.0 • Published 9 years ago
steeplejack-mysql v1.0.0
Steeplejack MySQL
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