## Description ### payload - Removes calls to beginTransaction and commitTransaction from read operations ### db-sqlite, db-postgres - beginTransaction() options are passed through and used to create a transaction - declare module type adds beginTransaction with proper transaction config args for postgres and sqlite
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.