@photostructure/sqlite
    Preparing search index...

    Interface EnhanceableDatabaseSync

    Minimal interface for a database that can be enhanced. This matches the subset of functionality needed by pragma() and transaction().

    interface EnhanceableDatabaseSync {
        isOpen?: boolean;
        isTransaction: boolean;
        exec(sql: string): void;
        prepare(sql: string): { all(): unknown[] };
    }
    Index

    Properties

    Methods

    Properties

    isOpen?: boolean

    Whether the database connection is open

    isTransaction: boolean

    Whether a transaction is currently active

    Methods

    • Execute SQL without returning results

      Parameters

      • sql: string

      Returns void

    • Prepare a statement that can return results

      Parameters

      • sql: string

      Returns { all(): unknown[] }