Skip to main content
Works with
This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score94%
License
MIT
Downloads7/wk
Published2 days ago (2.3.7)

SQLite drivers for Fedify

@fedify/sqlite: SQLite drivers for Fedify

JSR npm

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);

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fedify/sqlite

Import symbol

import * as sqlite from "@fedify/sqlite";
or

Import directly with a jsr specifier

import * as sqlite from "jsr:@fedify/sqlite@^2.3.7";