- Abstract shared sql code to a new drizzle package - Adds sqlite package, not ready to publish until drizzle patches some issues - Add `transactionOptions` to allow customizing or disabling db transactions - Adds "experimental" label to the `schemaName` property until drizzle patches an issue
31 lines
632 B
Markdown
31 lines
632 B
Markdown
# Payload Postgres Adapter
|
|
|
|
Official SQLite adapter for [Payload](https://payloadcms.com).
|
|
|
|
- [Main Repository](https://github.com/payloadcms/payload)
|
|
- [Payload Docs](https://payloadcms.com/docs)
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
npm install @payloadcms/db-sqlite
|
|
```
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
import { buildConfig } from 'payload/config'
|
|
import { sqliteAdapter } from '@payloadcms/db-sqlite'
|
|
|
|
export default buildConfig({
|
|
db: sqliteAdapter({
|
|
client: {
|
|
url: process.env.DATABASE_URI,
|
|
},
|
|
}),
|
|
// ...rest of config
|
|
})
|
|
```
|
|
|
|
More detailed usage can be found in the [Payload Docs](https://payloadcms.com/docs/configuration/overview).
|