Skip to content

Commit 6806a7a

Browse files
committed
Add version added hints to the new attributes for the clauses
1 parent 97a30b5 commit 6806a7a

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

icat/query.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,9 @@ def setLimit(self, limit):
495495

496496
@property
497497
def select_clause(self):
498-
"""The SELECT clause of the query
498+
"""The SELECT clause of the query.
499+
500+
.. versionadded:: 0.21.0
499501
"""
500502
subst = self._get_subst()
501503
if self.attributes:
@@ -521,7 +523,9 @@ def select_clause(self):
521523

522524
@property
523525
def join_clause(self):
524-
"""The JOIN clause of the query
526+
"""The JOIN clause of the query.
527+
528+
.. versionadded:: 0.21.0
525529
"""
526530
subst = self._get_subst()
527531
joins = []
@@ -535,7 +539,9 @@ def join_clause(self):
535539

536540
@property
537541
def where_clause(self):
538-
"""The WHERE clause of the query
542+
"""The WHERE clause of the query.
543+
544+
.. versionadded:: 0.21.0
539545
"""
540546
subst = self._get_subst()
541547
if self.conditions:
@@ -550,7 +556,9 @@ def where_clause(self):
550556

551557
@property
552558
def order_clause(self):
553-
"""The ORDER BY clause of the query
559+
"""The ORDER BY clause of the query.
560+
561+
.. versionadded:: 0.21.0
554562
"""
555563
subst = self._get_subst()
556564
if self.order:
@@ -563,7 +571,9 @@ def order_clause(self):
563571

564572
@property
565573
def include_clause(self):
566-
"""The INCLUDE clause of the query
574+
"""The INCLUDE clause of the query.
575+
576+
.. versionadded:: 0.21.0
567577
"""
568578
if self.includes:
569579
subst = self._makesubst(self.includes)
@@ -576,7 +586,9 @@ def include_clause(self):
576586

577587
@property
578588
def limit_clause(self):
579-
"""The LIMIT clause of the query
589+
"""The LIMIT clause of the query.
590+
591+
.. versionadded:: 0.21.0
580592
"""
581593
if self.limit:
582594
return "LIMIT %s, %s" % self.limit

0 commit comments

Comments
 (0)