Skip to main content
Home
This release is 2 versions behind 1.10.0 — the latest version of @fedify/sqlite. Jump to latest
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%
Downloads2/wk
Published3 months ago (1.9.1-dev.48)

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

Add Package

pnpm i jsr:@fedify/sqlite
or (using pnpm 10.8 or older)
pnpm dlx jsr add @fedify/sqlite

Import symbol

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

Add Package

yarn add jsr:@fedify/sqlite
or (using Yarn 4.8 or older)
yarn dlx jsr add @fedify/sqlite

Import symbol

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

Add Package

vlt install jsr:@fedify/sqlite

Import symbol

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

Add Package

npx jsr add @fedify/sqlite

Import symbol

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

Add Package

bunx jsr add @fedify/sqlite

Import symbol

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