@fedify/postgres
v0.1.0
Published
PostgreSQL drivers for Fedify
Downloads
336
Readme
@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
deno add @fedify/postgres
Node.js
npm install @fedify/postgres
Bun
bun add @fedify/postgres
Changelog
Version 0.1.0
Initial release. Released on September 26, 2024.