Skip to content

Commit

Permalink
Just fixing some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
josuebrunel committed Aug 16, 2014
1 parent dd6d028 commit ca1c22b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lokingyql/lokingyql.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def use(self, url):
'''
self.url = url
return self.url


## SELECT
def select(self, table=None, items=[]):
'''This method simulate a select on a table
>>> yql.select('table')
Expand All @@ -103,9 +104,10 @@ def select(self, table=None, items=[]):

return self

## WHERE
def where(self, *args):
''' This method simulates a where condition. Use as follow:
>>>yql.select('mytable').where([('name', '=', 'alain'), ('location', '!=', 'paris')])
>>>yql.select('mytable').where(['name', '=', 'alain'], ['location', '!=', 'paris'])
'''
if not self.table:
raise errors.NoTableSelectedError('No Table Selected')
Expand Down

0 comments on commit ca1c22b

Please sign in to comment.