gtfs-sqljs
    Preparing search index...

    Interface GtfsDatabase

    interface GtfsDatabase {
        close(): Promise<void>;
        export(): Promise<Uint8Array<ArrayBufferLike>>;
        prepare(sql: string): Promise<GtfsStatement>;
        run(sql: string): Promise<void>;
    }
    Index

    Methods

    • Serialize the database to a byte buffer. File-backed drivers should throw ExportNotSupportedError.

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Execute a one-shot SQL string (PRAGMA, DDL, transaction control).

      Parameters

      • sql: string

      Returns Promise<void>