gtfs-sqljs
    Preparing search index...

    Interface GtfsSqlJsAttachOptions

    Options for GtfsSqlJs.attach() — when the caller already has a live DB handle.

    interface GtfsSqlJsAttachOptions {
        ownsDatabase?: boolean;
        realtimeFeedUrls?: string[];
        skipSchema?: boolean;
        stalenessThreshold?: number;
    }
    Index

    Properties

    ownsDatabase?: boolean

    When true, GtfsSqlJs.close() will also close the underlying adapter handle. Defaults to false — callers retain ownership of handles they passed in via attach().

    realtimeFeedUrls?: string[]

    Optional: Array of GTFS-RT feed URLs for realtime data

    skipSchema?: boolean

    When true, assume the GTFS schema already exists in the attached DB and skip the CREATE TABLE IF NOT EXISTS DDL. Defaults to false: the library runs the idempotent schema DDL so that attaching to a fresh empty DB still works.

    stalenessThreshold?: number

    Optional: Staleness threshold in seconds (default: 120)