Noticeably Playful Monkeys

    gun-sqlite

    0.0.3 • Public • Published

    gun-sqlite

    A Gun <> SQLite Adapter for NodeJs apps to enable long-term storage for Gun data.

    This is a nodejs-ified version of https://github.com/lolotrgeek/gun-react-native-sqlite.

    Installation

    npm install gun-sqlite --save or yarn add gun--sqlite.

    This module depends on sqlite3 for SQLite bindings.

    Run

    const Gun = require('gun')
    const GunSQLite = require('gun-sqlite');
    const adapter = GunSQLite.bootstrap(Gun);
     
    const gun = new Gun({
        ...
        file: false,
        radisk: false,
        localStorage: false,
        // Defaults
        sqlite: {
            database_name: "GunDB.db",
        }
    })

    Install

    npm i gun-sqlite

    DownloadsWeekly Downloads

    7

    Version

    0.0.3

    License

    none

    Unpacked Size

    20.6 kB

    Total Files

    11

    Last publish

    Collaborators

    • lolotrgeek