mr-potato-head

    5.0.0 • Public • Published

    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!
        }
    });

    Install

    npm i mr-potato-head

    DownloadsWeekly Downloads

    277

    Version

    5.0.0

    License

    MIT

    Unpacked Size

    6.23 kB

    Total Files

    6

    Last publish

    Collaborators

    • mauricebutler
    • liam_oehlman