5.0.0 • Published 3 years ago

mr-potato-head v5.0.0

Weekly downloads
110
License
MIT
Repository
github
Last release
3 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

3 years ago

4.0.1

5 years ago

4.0.0

7 years ago

3.0.0

7 years ago

2.0.1

7 years ago

2.0.0

8 years ago

1.0.0

10 years ago