5.0.0 • Published 2 years ago

mr-potato-head v5.0.0

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

mr-potato-head

Get an arbitrary, common mysql lock

Installation

$ npm install --save mr-potato-head

# And one of the following:
$ npm install --save pg
$ npm install --save mysql2

Usage

var mrPotatoHead = require('mr-potato-head');

mrPotatoHead({
    dialect: 'mysql', // or postgres
    host: 'localhost',
    username: 'database',
    password: 'databasepassword',
    database: 'databasename',
}).lock(function(error) {
    if (error) {
        // no lock for you!
    }
});
5.0.0

2 years ago

4.0.1

4 years ago

4.0.0

5 years ago

3.0.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

9 years ago