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



Downloads3/wk
•Publisheda year ago (0.2.0)
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
deno add @fedify/postgres
Node.js
npm install @fedify/postgres
Bun
bun add @fedify/postgres
Changelog
Version 0.2.0
Released on November 3, 2024.
-
Fixed a bug where JSON values are double-quoted in the database. Since it's a breaking change data-wise, the default values of the following options are also changed:
PostgresKvStoreOptions.tableNamedefaults to"fedify_kv_v2".PostgresMessageQueueOptions.tableNamedefaults to"fedify_message_v2".
Version 0.1.0
Initial release. Released on September 26, 2024.
Built and signed on
GitHub Actions
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";