superapp
BackendDatabases

Bun SQLite

Connect using Bun's native SQLite driver.

Chat in Claude

Use Bun's built-in bun:sqlite driver for zero-dependency SQLite access.

import { createEngine } from '@superapp/backend'
import { bunSqliteProvider } from '@superapp/backend/databases/bun-sqlite'

const engine = createEngine({
  providers: [bunSqliteProvider],
  connections: {
    main: { type: 'bun-sqlite', filename: './data/app.db' },
  },
})

No Install Needed

bun:sqlite is built into the Bun runtime. No npm packages required.

Connection Options

OptionTypeDescription
filenamestringPath to SQLite file
readonlybooleanOpen in read-only mode

On this page