diff --git a/lokingyql/lokingyql.py b/lokingyql/lokingyql.py index 93a0544..8eff44b 100644 --- a/lokingyql/lokingyql.py +++ b/lokingyql/lokingyql.py @@ -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') @@ -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')