Skip to content
bun:sqlite/ prisma adapter

Class: PrismaBunSQLite

Defined in: factory.ts:19

Creates connections for Prisma.

Implements SqlMigrationAwareDriverAdapterFactory, the interface the schema engine consumes. Note that in Prisma 7.9 the CLI takes its connection from datasource.url in prisma.config.ts and migrates using its own SQLite handling, so prisma migrate does not route through this adapter — the commands work under Bun regardless.

Implements

  • SqlMigrationAwareDriverAdapterFactory

Constructors

Constructor

new PrismaBunSQLite(config, options?): PrismaBunSQLite;

Defined in: factory.ts:26

Parameters

ParameterType
configBunSQLiteConfig
optionsBunSQLiteOptions

Returns

PrismaBunSQLite

Properties

provider

readonly provider: "sqlite" = 'sqlite';

Defined in: factory.ts:23

Implementation of

SqlMigrationAwareDriverAdapterFactory.provider

adapterName

readonly adapterName: "prisma-sqlite-bun-adapter" = ADAPTER_NAME;

Defined in: factory.ts:24

Implementation of

SqlMigrationAwareDriverAdapterFactory.adapterName

Methods

connect()

connect(): Promise<SqlDriverAdapter>;

Defined in: factory.ts:58

Returns

Promise<SqlDriverAdapter>

Implementation of

SqlMigrationAwareDriverAdapterFactory.connect

connectToShadowDb()

connectToShadowDb(): Promise<SqlDriverAdapter>;

Defined in: factory.ts:72

Opens the throwaway database the migration engine diffs against. Defaults to an in-memory one, which is always empty and needs no cleanup.

Returns

Promise<SqlDriverAdapter>

Implementation of

SqlMigrationAwareDriverAdapterFactory.connectToShadowDb