Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
dahlia/fedify-postgresIt is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
JSR Score
82%
Published
3 weeks ago (0.1.0)
@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.
Built and signed on
View transparency logGitHub Actions
Add Package
deno add jsr:@fedify/postgres
Import symbol
import * as mod from "@fedify/postgres";
---- OR ----
Import directly with a jsr specifier
import * as mod from "jsr:@fedify/postgres";
Add Package
npx jsr add @fedify/postgres
Import symbol
import * as mod from "@fedify/postgres";
Add Package
yarn dlx jsr add @fedify/postgres
Import symbol
import * as mod from "@fedify/postgres";
Add Package
pnpm dlx jsr add @fedify/postgres
Import symbol
import * as mod from "@fedify/postgres";
Add Package
bunx jsr add @fedify/postgres
Import symbol
import * as mod from "@fedify/postgres";