File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,15 @@ public struct Query {
73
73
///
74
74
/// :returns: A query with the given SELECT clause applied.
75
75
public func select( all: Expressible ... ) -> Query {
76
+ return select ( all)
77
+ }
78
+
79
+ /// Sets the SELECT clause on the query.
80
+ ///
81
+ /// :param: all A list of expressions to select.
82
+ ///
83
+ /// :returns: A query with the given SELECT clause applied.
84
+ public func select( all: [ Expressible ] ) -> Query {
76
85
var query = self
77
86
( query. distinct, query. columns) = ( false , all)
78
87
return query
@@ -84,6 +93,15 @@ public struct Query {
84
93
///
85
94
/// :returns: A query with the given SELECT DISTINCT clause applied.
86
95
public func select( distinct columns: Expressible ... ) -> Query {
96
+ return select ( distinct: columns)
97
+ }
98
+
99
+ /// Sets the SELECT DISTINCT clause on the query.
100
+ ///
101
+ /// :param: columns A list of expressions to select.
102
+ ///
103
+ /// :returns: A query with the given SELECT DISTINCT clause applied.
104
+ public func select( distinct columns: [ Expressible ] ) -> Query {
87
105
var query = self
88
106
( query. distinct, query. columns) = ( true , columns)
89
107
return query
You can’t perform that action at this time.
0 commit comments