JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q31496F
  • License MIT

SQLite3 persistence layer for gun

Package Exports

  • sqlite.gun

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sqlite.gun) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

sqlite

SQLite3 persistence layer for gun! GUN is an Open Source Firebase with swappable storage engines (level, SQLite, etc.) that handles data synchronization across machines / devices.

Or in other words: If you use gun as your API to SQLite3, you'll get multi-machine SQLite3 clusters for free!

Get it by

npm install sqlite.gun

Use by

var Gun = require('gun');
require('sqlite.gun');

var gun = Gun({
  file: false // turn off pesky file.js data.json default
  , sqlite: {
    file: "gun.sqlite3"
  }
});

Check the gun docs on how to read/write data, it will then handle sync automatically for you (even to the browser!). Tip: It is a graph database, so you can do key/value, document, relational, or graph based data - here is a crash course on how to use it.

Enjoy!

Or: Complain about bugs. :)