22
22
// THE SOFTWARE.
23
23
//
24
24
25
- private enum Functions : String {
25
+ private enum Function : String {
26
26
case count
27
27
case max
28
28
case min
@@ -61,7 +61,7 @@ extension ExpressionType where UnderlyingType : Value {
61
61
/// - Returns: A copy of the expression wrapped with the `count` aggregate
62
62
/// function.
63
63
public var count : Expression < Int > {
64
- return Functions . count. wrap ( self )
64
+ return Function . count. wrap ( self )
65
65
}
66
66
67
67
}
@@ -92,7 +92,7 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
92
92
/// - Returns: A copy of the expression wrapped with the `count` aggregate
93
93
/// function.
94
94
public var count : Expression < Int > {
95
- return Functions . count. wrap ( self )
95
+ return Function . count. wrap ( self )
96
96
}
97
97
98
98
}
@@ -109,7 +109,7 @@ extension ExpressionType where UnderlyingType : Value, UnderlyingType.Datatype :
109
109
/// - Returns: A copy of the expression wrapped with the `max` aggregate
110
110
/// function.
111
111
public var max : Expression < UnderlyingType ? > {
112
- return Functions . max. wrap ( self )
112
+ return Function . max. wrap ( self )
113
113
}
114
114
115
115
/// Builds a copy of the expression wrapped with the `min` aggregate
@@ -122,7 +122,7 @@ extension ExpressionType where UnderlyingType : Value, UnderlyingType.Datatype :
122
122
/// - Returns: A copy of the expression wrapped with the `min` aggregate
123
123
/// function.
124
124
public var min : Expression < UnderlyingType ? > {
125
- return Functions . min. wrap ( self )
125
+ return Function . min. wrap ( self )
126
126
}
127
127
128
128
}
@@ -139,7 +139,7 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
139
139
/// - Returns: A copy of the expression wrapped with the `max` aggregate
140
140
/// function.
141
141
public var max : Expression < UnderlyingType > {
142
- return Functions . max. wrap ( self )
142
+ return Function . max. wrap ( self )
143
143
}
144
144
145
145
/// Builds a copy of the expression wrapped with the `min` aggregate
@@ -152,7 +152,7 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
152
152
/// - Returns: A copy of the expression wrapped with the `min` aggregate
153
153
/// function.
154
154
public var min : Expression < UnderlyingType > {
155
- return Functions . min. wrap ( self )
155
+ return Function . min. wrap ( self )
156
156
}
157
157
158
158
}
@@ -169,7 +169,7 @@ extension ExpressionType where UnderlyingType : Value, UnderlyingType.Datatype :
169
169
/// - Returns: A copy of the expression wrapped with the `min` aggregate
170
170
/// function.
171
171
public var average : Expression < Double ? > {
172
- return Functions . avg. wrap ( self )
172
+ return Function . avg. wrap ( self )
173
173
}
174
174
175
175
/// Builds a copy of the expression wrapped with the `sum` aggregate
@@ -182,7 +182,7 @@ extension ExpressionType where UnderlyingType : Value, UnderlyingType.Datatype :
182
182
/// - Returns: A copy of the expression wrapped with the `min` aggregate
183
183
/// function.
184
184
public var sum : Expression < UnderlyingType ? > {
185
- return Functions . sum. wrap ( self )
185
+ return Function . sum. wrap ( self )
186
186
}
187
187
188
188
/// Builds a copy of the expression wrapped with the `total` aggregate
@@ -195,7 +195,7 @@ extension ExpressionType where UnderlyingType : Value, UnderlyingType.Datatype :
195
195
/// - Returns: A copy of the expression wrapped with the `min` aggregate
196
196
/// function.
197
197
public var total : Expression < Double > {
198
- return Functions . total. wrap ( self )
198
+ return Function . total. wrap ( self )
199
199
}
200
200
201
201
}
@@ -212,7 +212,7 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
212
212
/// - Returns: A copy of the expression wrapped with the `min` aggregate
213
213
/// function.
214
214
public var average : Expression < Double ? > {
215
- return Functions . avg. wrap ( self )
215
+ return Function . avg. wrap ( self )
216
216
}
217
217
218
218
/// Builds a copy of the expression wrapped with the `sum` aggregate
@@ -225,7 +225,7 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
225
225
/// - Returns: A copy of the expression wrapped with the `min` aggregate
226
226
/// function.
227
227
public var sum : Expression < UnderlyingType > {
228
- return Functions . sum. wrap ( self )
228
+ return Function . sum. wrap ( self )
229
229
}
230
230
231
231
/// Builds a copy of the expression wrapped with the `total` aggregate
@@ -238,15 +238,15 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
238
238
/// - Returns: A copy of the expression wrapped with the `min` aggregate
239
239
/// function.
240
240
public var total : Expression < Double > {
241
- return Functions . total. wrap ( self )
241
+ return Function . total. wrap ( self )
242
242
}
243
243
244
244
}
245
245
246
246
extension ExpressionType where UnderlyingType == Int {
247
247
248
248
static func count( _ star: Star ) -> Expression < UnderlyingType > {
249
- return Functions . count. wrap ( star ( nil , nil ) )
249
+ return Function . count. wrap ( star ( nil , nil ) )
250
250
}
251
251
252
252
}
0 commit comments