@easy-cms/db-sqlite
v0.24.0
Published
SQLite / libSQL database adapter for Easy CMS
Maintainers
Readme
@easy-cms/db-sqlite
SQLite and libSQL (Turso) database adapter for Easy CMS. Part of Easy CMS, the embedded, code-first headless CMS for Nuxt and Next.js.
Install
npm install @easy-cms/db-sqliteOr pnpm add, yarn add or bun add.
Usage
import { sqlite } from '@easy-cms/db-sqlite'
export default defineConfig({
db: sqlite({ url: 'file:./cms.db' }),
// ...
})| Option | Default | |
|---|---|---|
| url | — | file:./cms.db (relative to the project root) or libsql://… |
| authToken | — | For Turso / remote libSQL |
| tablePrefix | ecms_ | Prefix of every table Easy CMS creates |
| migrationDir | easy-cms/migrations | Where migration files are written |
In-memory databases (:memory:) are not supported because transactions open a second connection.
Links
Databases · Documentation (ภาษาไทย) · GitHub
MIT License
