Sha256: 4233399a739c1c63aa211d57ebeb06320a7cfcdfa09730386e6b0fb2745d506b
Contents?: true
Size: 406 Bytes
Versions: 5
Compression:
Stored size: 406 Bytes
Contents
import sqlite3InitModule from "@sqlite.org/sqlite-wasm"; export const setupSQLiteDatabase = async () => { const sqlite3 = await sqlite3InitModule(); console.log("Running SQLite3 version", sqlite3.version.libVersion); // NOTE: This database is transient and will be lost if you uninstall the service worker (aka hard reset) const db = new sqlite3.oo1.DB("/railsdb.sqlite3", "ct"); return db; };
Version data entries
5 entries across 5 versions & 1 rubygems