Skip to content

Separate table loading logic from table structure#1284

Merged
aababilov merged 2 commits intoMobilityData:masterfrom
aababilov:table-descriptors
Dec 14, 2022
Merged

Separate table loading logic from table structure#1284
aababilov merged 2 commits intoMobilityData:masterfrom
aababilov:table-descriptors

Conversation

@aababilov
Copy link
Copy Markdown
Collaborator

Instead of generating GtfsTableLoader classes, now we generate GtfsTableDescriptor which is used by a non-generated AnyTableLoader class.

GtfsTableDescriptor only contains information about table fields but does not implement parsing or validation. This way the new GtfsTableDescriptor is simpler than GtfsTableLoader.

AnyTableLoader class can support GTFS extensions in future.

@aababilov aababilov force-pushed the table-descriptors branch 4 times, most recently from 9ed795a to fa7a467 Compare November 9, 2022 06:26
Copy link
Copy Markdown
Collaborator

@asvechnikov2 asvechnikov2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants