better-sqlite3/BetterSqlite3DataSourceOptions.ts

typeorm · packages/typeorm/src/driver/better-sqlite3/BetterSqlite3DataSourceOptions.ts · typescript · MIT
database

Defines TypeORM options for the better-sqlite3 driver, specifying connection parameters and driver behavior.

// Source: https://github.com/typeorm/typeorm | License: MIT | Copyright 2015-2025 TypeORM. http://typeorm.github.io
// Provided via justclaw.it.com; keep this notice with the code.
import type { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions"

/**
 * Sqlite-specific connection options.
 */
export interface BetterSqlite3DataSourceOptions extends BaseDataSourceOptions {
    /**
     * Database type.
     */
    readonly type: "better-sqlite3"

    /**
     * Storage type or path to the storage.
     */
    readonly database: string

    /**
     * The driver object
     * This defaults to require("better-sqlite3")
     */
    readonly driver?: any

    /**
     * Encryption key for for SQLCipher.
     */
    readonly key?: string

    /**
     * Cache size of sqlite s

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key