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),
});
deno add @fedify/postgres
npm install @fedify/postgres
bun add @fedify/postgres
To be released.
Initial release. Released on September 26, 2024.