Documentation
    Preparing search index...

    Interface SqliteConnectionOptions

    interface SqliteConnectionOptions {
        mode?: number;
        password?: string;
        storage?: string;
    }
    Index
    mode?: number

    The mode to open the database connection with.

    An integer flag that can be a combination of the following values:

    • OPEN_CREATE
    • OPEN_READONLY
    • OPEN_READWRITE
    • OPEN_SHAREDCACHE
    • OPEN_PRIVATECACHE
    • OPEN_FULLMUTEX
    • OPEN_URI

    This package exports each of these values

    import { SqliteDialect, OPEN_CREATE, OPEN_READWRITE } from '@sequelize/sqlite3';

    new Sequelize({
    dialect: SqliteDialect,
    storage: 'db.sqlite',
    mode: OPEN_CREATE | OPEN_READWRITE,
    });
    password?: string

    The "PRAGMA KEY" password to use for the connection.

    storage?: string

    Path to the SQLite database file

    Special values:

    • ':memory:': to use a temporary in-memory database.
    • '': to create a temporary disk-based database.

    Note: temporary databases require the pool to have the following configuration:

    • max size: 1
    • idle timeout: Infinity
    • max uses per resource: Infinity
    'sequelize.sqlite' in your current working directory