@payloadcms/db-postgres
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

Payload Postgres Adapter

Official Postgres adapter for Payload.

Installation

npm install @payloadcms/db-postgres

Usage

import { buildConfig } from 'payload/config'
import { postgresAdapter } from '@payloadcms/db-postgres'

export default buildConfig({
  db: postgresAdapter({
    pool: {
      connectionString: process.env.DATABASE_URI,
    }
  }),
  // ...rest of config
})

More detailed usage can be found in the Payload Docs.

Readme

Keywords

none

Package Sidebar

Install

npm i @payloadcms/db-postgres

Weekly Downloads

3,967

Version

0.7.0

License

MIT

Unpacked Size

801 kB

Total Files

239

Last publish

Collaborators

  • jesschow
  • jarrodmflesch
  • danribbens
  • elliotpayload
  • jacobsfletch
  • payloadjs