Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add making queries to documentation #9

Open
Permafacture opened this issue Aug 1, 2014 · 2 comments
Open

Add making queries to documentation #9

Permafacture opened this issue Aug 1, 2014 · 2 comments

Comments

@Permafacture
Copy link

Sorry if I missed this (and I didn't find a mailing list). Looping through entities is very convenient, but I'd like to specify queries for performance. Trying to make a query did not work as expected:

Stop = pygtfs.gtfs_entities.Stop
stops = schedule.session.query(Stop).all()

[...]

ArgumentError: Column-based expression object expected for argument 'order_by'; got: 'stop_sequence', type <type 'str'>     

Is there support for specifying SQLalchemy queries is pygtfs? How do I use it?

Thanks.
Elliot

@Permafacture
Copy link
Author

Edit: this must actually be a bug somewhere, or I am misusing the ORM, as it works with Routes...

@jarondl
Copy link
Owner

jarondl commented Dec 8, 2018

Does this still happen? Or was it fixed by the recent changes?

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

No branches or pull requests

2 participants