Licence
MIT
Version
2.3.1
Deps
3
Size
112 kB
Vulns
0
Weekly
2.7K
@fedify/sqlite: SQLite drivers for Fedify
This package provides a SQLite-based KvStore implementation for Fedify.
Usage
Deno
import { DatabaseSync } from 'node:sqlite';
import { SqliteKvStore } from '@fedify/sqlite';
const db = new DatabaseSync('./data.db');
const store = new SqliteKvStore(db);Node.js
import { DatabaseSync } from 'node:sqlite';
import { SqliteKvStore } from '@fedify/sqlite';
const db = new DatabaseSync('./data.db');
const store = new SqliteKvStore(db);Bun
import { Database } from 'bun:sqlite';
import { SqliteKvStore } from '@fedify/sqlite';
const db = new Database('./data.db');
const store = new SqliteKvStore(db);