PostgreSQL (pgsql)
A plugin providing a database adapter using.
Installation
npm install @oberoncms/plugin-pgsql
oberon/adapter.ts
import { plugin as databasePlugin } from "@oberoncms/plugin-pgsql"
export const adapter = initAdapter([
developmentPlugin,
databasePlugin,
/* ...other plugins */
])
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>