Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

@payloadcms/db-postgres

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payloadcms/db-postgres

The officially supported Postgres database adapter for Payload


Version published
Weekly downloads
13K
increased by35.07%
Maintainers
9
Weekly downloads
 
Created

Payload Postgres Adapter

Official Postgres adapter for Payload.

Installation

npm install @payloadcms/db-postgres

Usage

import { buildConfig } from 'payload'
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.

FAQs

Package last updated on 12 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts