@photostructure/sqlite
    Preparing search index...

    Interface PragmaOptions

    Options for the pragma() method.

    interface PragmaOptions {
        simple?: boolean;
    }
    Index

    Properties

    Properties

    simple?: boolean

    When true, returns only the first column of the first row. This is useful for pragmas that return a single value.

    false
    
    // Without simple: returns [{ cache_size: -16000 }]
    db.pragma('cache_size');

    // With simple: returns -16000
    db.pragma('cache_size', { simple: true });