diff --git a/sqlquerybuilder/__init__.py b/sqlquerybuilder/__init__.py index a0faa09..b6f5952 100644 --- a/sqlquerybuilder/__init__.py +++ b/sqlquerybuilder/__init__.py @@ -292,6 +292,9 @@ class SQLQuery(object): clone._group_by = args return clone + def first(self): + return self[:1] + def join(self, table, on="", how="inner join"): clone = self._clone() if on: