This release is 2 versions behind 1.10.0 — the latest version of @fedify/postgres. Jump to latest
Works with
•JSR Score100%•This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers



Downloads3/wk
•Published3 months ago (1.9.1-dev.62)
PostgreSQL drivers for Fedify
@fedify/postgres: PostgreSQL drivers for Fedify
This package provides Fedify's KvStore and MessageQueue
implementations for PostgreSQL:
import { createFederation } from "@fedify/fedify"; import { PostgresKvStore, PostgresMessageQueue } from "@fedify/postgres"; import postgres from "postgres"; const sql = postgres("postgresql://user:password@localhost/dbname"); const federation = createFederation({ kv: new PostgresKvStore(sql), queue: new PostgresMessageQueue(sql), });
Installation
deno add jsr:@fedify/postgres # Deno npm add @fedify/postgres # npm pnpm add @fedify/postgres # pnpm yarn add @fedify/postgres # Yarn bun add @fedify/postgres # Bun
Add Package
deno add jsr:@fedify/postgres
Import symbol
import * as postgres from "@fedify/postgres";
Import directly with a jsr specifier
import * as postgres from "jsr:@fedify/postgres";
Add Package
pnpm i jsr:@fedify/postgres
pnpm dlx jsr add @fedify/postgres
Import symbol
import * as postgres from "@fedify/postgres";
Add Package
yarn add jsr:@fedify/postgres
yarn dlx jsr add @fedify/postgres
Import symbol
import * as postgres from "@fedify/postgres";
Add Package
vlt install jsr:@fedify/postgres
Import symbol
import * as postgres from "@fedify/postgres";
Add Package
npx jsr add @fedify/postgres
Import symbol
import * as postgres from "@fedify/postgres";
Add Package
bunx jsr add @fedify/postgres
Import symbol
import * as postgres from "@fedify/postgres";