You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#46. Four read-only accessors covering tables that were imported
but unreachable through the query API:
- getCalendars(filters?): bulk read of calendar (serviceId, limit)
- getCalendarDates(filters?): now optional (serviceId, date, limit);
the legacy getCalendarDates('SERVICE_ID') string form still works
- getFeedInfo(): feed_info rows as an array (spec allows multiple rows)
- getFrequencies(filters?): frequencies (tripId, limit); exact_times: 0
is preserved, not coerced to undefined
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MNBx9fdd9ks7ppr6Vjd4mZ
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,10 @@
3
3
## Upcoming release
4
4
5
5
- Fix: `ProgressInfo` and `ProgressCallback` types are now exported from the package entry point, as documented in the README (`import { type ProgressInfo } from 'gtfs-sqljs'` previously failed).
6
+
-**Add `getCalendars(filters?)`** — bulk read of the `calendar` table (filters: `serviceId` single value or array, `limit`). `getCalendarByServiceId()` remains as a convenience wrapper. ([#46](https://github.com/sysdevrun/gtfs-sqljs/issues/46))
7
+
-**`getCalendarDates()` no longer requires a service id** — it now accepts an optional filters object (`serviceId`, `date`, `limit`) and returns the whole `calendar_dates` table when called without arguments. The legacy `getCalendarDates('SERVICE_ID')` string form is still accepted. ([#46](https://github.com/sysdevrun/gtfs-sqljs/issues/46))
8
+
-**Add `getFeedInfo()`** — returns the `feed_info` rows (an array, since the spec allows multiple rows). Useful for `feed_start_date`/`feed_end_date` bounds and `feed_version` display/cache keys. ([#46](https://github.com/sysdevrun/gtfs-sqljs/issues/46))
9
+
-**Add `getFrequencies(filters?)`** — read the `frequencies` table (filters: `tripId` single value or array, `limit`), e.g. to detect frequency-based trips whose `stop_times` are offsets from `start_time`. `exact_times: 0` is preserved (not coerced to `undefined`). ([#46](https://github.com/sysdevrun/gtfs-sqljs/issues/46))
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,9 +169,14 @@ All methods support flexible filtering with both single values and arrays:
169
169
#### Calendar Methods
170
170
-`getActiveServiceIds(date)` - Get active service IDs for a date (YYYYMMDD format)
171
171
-`getCalendars(filters?)` - Get calendars (filters: serviceId, limit)
172
-
-`getCalendarDates(serviceId)` - Get calendar date exceptions for a service
172
+
-`getCalendarByServiceId(serviceId)` - Get a single calendar entry
173
+
-`getCalendarDates(filters?)` - Get calendar date exceptions (filters: serviceId, date, limit; a plain serviceId string is still accepted)
173
174
-`getCalendarDatesForDate(date)` - Get calendar exceptions for a specific date
174
175
176
+
#### Feed Info and Frequency Methods
177
+
-`getFeedInfo()` - Get feed_info rows (array — the spec allows multiple rows)
178
+
-`getFrequencies(filters?)` - Get headway-based service patterns (filters: tripId, limit). If a trip appears here, its stop_times are offsets from each `start_time` rather than absolute times.
179
+
175
180
#### GTFS Realtime Methods
176
181
-`fetchRealtimeData(urls?)` - Fetch and load RT data from protobuf feeds
177
182
-`clearRealtimeData()` - Clear all realtime data from database
0 commit comments