2015-07-24 14:47:11 -06:00
2015-07-24 14:00:32 -06:00
2015-07-24 14:47:11 -06:00
2015-07-24 14:47:11 -06:00
2015-07-21 18:58:34 -06:00
2015-07-24 14:00:32 -06:00
2015-07-22 20:58:18 -06:00
2015-07-21 18:58:34 -06:00
2015-07-24 02:57:17 -06:00
2015-07-24 14:47:11 -06:00
2015-07-24 14:47:11 -06:00

DRAFT

This is just hypothetical while I build out the API

SQLite3 Server

Node.js runs on a single core, which isn't very effective.

You can run multiple Node.js instances to take advantage of multiple cores, but if you do that, you can't use SQLite in each process.

This module will either run client-server style in environments that benefit from it (such as the Raspberry Pi 2 with 4 cores), or in-process for environments that don't (such as the Raspberry Pi B and B+).

Usage

var sqlite = require('sqlite3-server');
var opts = {
  key: '1892d335081d8d346e556c9c3c8ff2c3'
, bits: 128
, filename: path.join('/tmp/authn.sqlcipher')
, verbose: false
, port: 3232 // default random
, forceServer: true // default false
};

sqlite.create(opts).then(function (db) {
  // EXACT same api as db
});
Description
node-sqlite3, thinly wrapped for use in a node cluster (useful for Raspberry Pi 2 and other multi-core arm devices)
Readme 65 KiB
Languages
JavaScript 98.5%
Shell 1.5%