Files
payload/packages/db-example/README.md
Patrik a757635bc7 chore: db-example (#6495)
## Description

Adds `db-example` repo

- [x] I have read and understand the
[CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md)
document in this repository.

## Type of change

- [x] Chore (non-breaking change which does not add functionality)

## Checklist:

- [x] Existing test suite passes locally with my changes

---------

Co-authored-by: Elliot DeNolf <denolfe@gmail.com>
2024-05-24 12:16:34 -04:00

561 B

Example Database Adapter for Payload

Installation

npm install @payloadcms/db-example

Usage

import { buildConfig } from 'payload/config'
import { exampleAdapter } from '@payloadcms/db-example'

export default buildConfig({
  db: exampleAdapter({
    url: process.env.DATABASE_URI,
  }),
  // ...rest of config
})

More detailed usage can be found in the Payload Docs.