JSPM

@payloadcms/db-sqlite

3.11.1-canary.0575547
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26619
  • Score
    100M100P100Q147053F
  • License MIT

The officially supported SQLite database adapter for Payload

Package Exports

  • @payloadcms/db-sqlite
  • @payloadcms/db-sqlite/drizzle
  • @payloadcms/db-sqlite/drizzle/libsql
  • @payloadcms/db-sqlite/drizzle/relations
  • @payloadcms/db-sqlite/drizzle/sqlite-core
  • @payloadcms/db-sqlite/migration-utils
  • @payloadcms/db-sqlite/types

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@payloadcms/db-sqlite) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Payload SQLite Adapter

Official SQLite adapter for Payload.

Installation

npm install @payloadcms/db-sqlite

Usage

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.