lib/sqlite-helper.js
function saveDB (sql) {
        let data = sql.export();
        let buffer = new Buffer(data);

        mkdirp.sync(dbDirPath, '0755');
        fs.writeFileSync(dbFilePath, buffer);
    }
function saveDB (sql) {
        let data = sql.export();
        let buffer = new Buffer(data);

        mkdirp.sync(dbDirPath, '0755');
        fs.writeFileSync(dbFilePath, buffer);
    }
function saveDB ( sql ) { let data = sql . export ( ) ; let buffer = new Buffer ( data ) ; mkdirp . sync ( dbDirPath , '0755' ) ; fs . writeFileSync ( dbFilePath , buffer ) ; }
Saves a sql database to the disk.

@param sql {Database}
Saves a sql database to the disk .