First
This commit is contained in:
@@ -292,6 +292,9 @@ class SQLQuery(object):
|
|||||||
clone._group_by = args
|
clone._group_by = args
|
||||||
return clone
|
return clone
|
||||||
|
|
||||||
|
def first(self):
|
||||||
|
return self[:1]
|
||||||
|
|
||||||
def join(self, table, on="", how="inner join"):
|
def join(self, table, on="", how="inner join"):
|
||||||
clone = self._clone()
|
clone = self._clone()
|
||||||
if on:
|
if on:
|
||||||
|
|||||||
Reference in New Issue
Block a user