(
self,
raw_columns,
from_obj,
where_criteria,
having_criteria,
label_style,
order_by,
for_update,
hints,
statement_hints,
correlate,
correlate_except,
limit_clause,
offset_clause,
fetch_clause,
fetch_clause_options,
distinct,
distinct_on,
prefixes,
suffixes,
group_by,
independent_ctes,
independent_ctes_opts,
syntax_extensions,
)
| 1760 | return statement |
| 1761 | |
| 1762 | def _select_statement( |
| 1763 | self, |
| 1764 | raw_columns, |
| 1765 | from_obj, |
| 1766 | where_criteria, |
| 1767 | having_criteria, |
| 1768 | label_style, |
| 1769 | order_by, |
| 1770 | for_update, |
| 1771 | hints, |
| 1772 | statement_hints, |
| 1773 | correlate, |
| 1774 | correlate_except, |
| 1775 | limit_clause, |
| 1776 | offset_clause, |
| 1777 | fetch_clause, |
| 1778 | fetch_clause_options, |
| 1779 | distinct, |
| 1780 | distinct_on, |
| 1781 | prefixes, |
| 1782 | suffixes, |
| 1783 | group_by, |
| 1784 | independent_ctes, |
| 1785 | independent_ctes_opts, |
| 1786 | syntax_extensions, |
| 1787 | ): |
| 1788 | statement = Select._create_raw_select( |
| 1789 | _raw_columns=raw_columns, |
| 1790 | _from_obj=from_obj, |
| 1791 | _label_style=label_style, |
| 1792 | ) |
| 1793 | |
| 1794 | if where_criteria: |
| 1795 | statement._where_criteria = where_criteria |
| 1796 | if having_criteria: |
| 1797 | statement._having_criteria = having_criteria |
| 1798 | |
| 1799 | if order_by: |
| 1800 | statement._order_by_clauses += tuple(order_by) |
| 1801 | |
| 1802 | if distinct_on: |
| 1803 | statement._distinct = True |
| 1804 | statement._distinct_on = distinct_on |
| 1805 | elif distinct: |
| 1806 | statement._distinct = True |
| 1807 | |
| 1808 | if group_by: |
| 1809 | statement._group_by_clauses += tuple(group_by) |
| 1810 | |
| 1811 | statement._limit_clause = limit_clause |
| 1812 | statement._offset_clause = offset_clause |
| 1813 | statement._fetch_clause = fetch_clause |
| 1814 | statement._fetch_clause_options = fetch_clause_options |
| 1815 | statement._independent_ctes = independent_ctes |
| 1816 | statement._independent_ctes_opts = independent_ctes_opts |
| 1817 | if syntax_extensions: |
| 1818 | statement._set_syntax_extensions(**syntax_extensions) |
| 1819 |
no test coverage detected