* feat(db-postgres): WIP adds idType to use uuid or serial id columns * chore: add postgres-uuid test ci * chore: add postgres-uuid env vars * chore: sanitizeQueryValue prevent invalid types * fix(db-postgres): invalid parentID of nested arrays
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.