gtfs-sqljs defines a narrow, async surface that any SQLite driver can
satisfy (sql.js, better-sqlite3, op-sqlite, expo-sqlite, …). The core
library no longer imports sql.js directly; consumers pick an adapter and
either pass a factory (GtfsDatabaseAdapter) into fromZip / fromDatabase
or hand in a pre-opened GtfsDatabase via GtfsSqlJs.attach().
Adapter types for pluggable database backends.
gtfs-sqljs defines a narrow, async surface that any SQLite driver can satisfy (sql.js, better-sqlite3, op-sqlite, expo-sqlite, …). The core library no longer imports sql.js directly; consumers pick an adapter and either pass a factory (
GtfsDatabaseAdapter) intofromZip/fromDatabaseor hand in a pre-openedGtfsDatabaseviaGtfsSqlJs.attach().