gtfs-sqljs
    Preparing search index...

    Interface GtfsDatabaseAdapter

    Factory used by flows that need the library to create / load a DB on the caller's behalf (fromZip, fromDatabase). Not needed for attach().

    interface GtfsDatabaseAdapter {
        createEmpty(): Promise<GtfsDatabase>;
        openFromBuffer(
            buffer: ArrayBuffer | Uint8Array<ArrayBufferLike>,
        ): Promise<GtfsDatabase>;
    }
    Index

    Methods

    • Open an existing database from a byte buffer (used by fromDatabase). File-backed drivers that cannot load bytes into a fresh DB may throw.

      Parameters

      • buffer: ArrayBuffer | Uint8Array<ArrayBufferLike>

      Returns Promise<GtfsDatabase>