Skip to Content

PostgreSQL (pgsql)

A plugin providing a database adapter using PostgreSQL.

Installation

npm install @oberoncms/plugin-pgsql
oberon/adapter.ts
import { initOberon } from "@oberoncms/core/adapter" import { plugin as databasePlugin } from "@oberoncms/plugin-pgsql" export const { adapter, handler } = initOberon({ config, plugins: [developmentPlugin, databasePlugin, authPlugin], })

Configuration

By default the PostgreSQL plugin will automatically use your PostgreSQL database for production builds and fall back to the developmentPlugin in development.

Environment Variables

DATABASE_URL=<postgres://user:password@host:port/database>
Last updated on