-
Notifications
You must be signed in to change notification settings - Fork 8
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
SELECT method #5
Comments
I didn't test it. Shame on me (--_) |
New thing. I was thinking about doing something like this >>> yql.select().where([('name', '=', 'alain')]) In this case, we select the table from _self.current_table_ >>>yql.select('country', ['name', 'pop', 'capital']).where([('zone', '=', 'africa')]) This means that we select the table country. If _self.current_table_ is different from country, then _self.current_table_ = country. All that leads to a new prototype of the method def select(self, table, items=[]):
#code |
A new parameter is added : _limit_ def select(self, table, items=[], limit=None):
#code Use as follow: >>> yql.select('geo.countries', ['name', 'woeid'], 5).where(['place', '=', 'North America']) |
To make it simple. The idea is to be able to something like this :
Got it ?
The text was updated successfully, but these errors were encountered: