@@ -68,9 +68,9 @@ extension ExpressionType where UnderlyingType == Double {
68
68
/// - Returns: A copy of the expression wrapped with the `round` function.
69
69
public func round( _ precision: Int ? = nil ) -> Expression < UnderlyingType > {
70
70
guard let precision = precision else {
71
- return wrap ( [ self ] )
71
+ return " round " . wrap ( [ self ] )
72
72
}
73
- return wrap ( [ self , Int ( precision) ] )
73
+ return " round " . wrap ( [ self , Int ( precision) ] )
74
74
}
75
75
76
76
}
@@ -88,9 +88,9 @@ extension ExpressionType where UnderlyingType == Double? {
88
88
/// - Returns: A copy of the expression wrapped with the `round` function.
89
89
public func round( _ precision: Int ? = nil ) -> Expression < UnderlyingType > {
90
90
guard let precision = precision else {
91
- return wrap ( self )
91
+ return " round " . wrap ( self )
92
92
}
93
- return wrap ( [ self , Int ( precision) ] )
93
+ return " round " . wrap ( [ self , Int ( precision) ] )
94
94
}
95
95
96
96
}
@@ -143,7 +143,7 @@ extension ExpressionType where UnderlyingType == Data {
143
143
///
144
144
/// - Returns: A copy of the expression wrapped with the `length` function.
145
145
public var length : Expression < Int > {
146
- return wrap ( self )
146
+ return " length " . wrap ( self )
147
147
}
148
148
149
149
}
@@ -158,7 +158,7 @@ extension ExpressionType where UnderlyingType == Data? {
158
158
///
159
159
/// - Returns: A copy of the expression wrapped with the `length` function.
160
160
public var length : Expression < Int ? > {
161
- return wrap ( self )
161
+ return " length " . wrap ( self )
162
162
}
163
163
164
164
}
@@ -173,7 +173,7 @@ extension ExpressionType where UnderlyingType == String {
173
173
///
174
174
/// - Returns: A copy of the expression wrapped with the `length` function.
175
175
public var length : Expression < Int > {
176
- return wrap ( self )
176
+ return " length " . wrap ( self )
177
177
}
178
178
179
179
/// Builds a copy of the expression wrapped with the `lower` function.
@@ -317,9 +317,9 @@ extension ExpressionType where UnderlyingType == String {
317
317
/// - Returns: A copy of the expression wrapped with the `ltrim` function.
318
318
public func ltrim( _ characters: Set < Character > ? = nil ) -> Expression < UnderlyingType > {
319
319
guard let characters = characters else {
320
- return wrap ( self )
320
+ return " ltrim " . wrap ( self )
321
321
}
322
- return wrap ( [ self , String ( characters) ] )
322
+ return " ltrim " . wrap ( [ self , String ( characters) ] )
323
323
}
324
324
325
325
/// Builds a copy of the expression wrapped with the `rtrim` function.
@@ -335,9 +335,9 @@ extension ExpressionType where UnderlyingType == String {
335
335
/// - Returns: A copy of the expression wrapped with the `rtrim` function.
336
336
public func rtrim( _ characters: Set < Character > ? = nil ) -> Expression < UnderlyingType > {
337
337
guard let characters = characters else {
338
- return wrap ( self )
338
+ return " rtrim " . wrap ( self )
339
339
}
340
- return wrap ( [ self , String ( characters) ] )
340
+ return " rtrim " . wrap ( [ self , String ( characters) ] )
341
341
}
342
342
343
343
/// Builds a copy of the expression wrapped with the `trim` function.
@@ -353,9 +353,9 @@ extension ExpressionType where UnderlyingType == String {
353
353
/// - Returns: A copy of the expression wrapped with the `trim` function.
354
354
public func trim( _ characters: Set < Character > ? = nil ) -> Expression < UnderlyingType > {
355
355
guard let characters = characters else {
356
- return wrap ( [ self ] )
356
+ return " trim " . wrap ( [ self ] )
357
357
}
358
- return wrap ( [ self , String ( characters) ] )
358
+ return " trim " . wrap ( [ self , String ( characters) ] )
359
359
}
360
360
361
361
/// Builds a copy of the expression wrapped with the `replace` function.
@@ -398,7 +398,7 @@ extension ExpressionType where UnderlyingType == String? {
398
398
///
399
399
/// - Returns: A copy of the expression wrapped with the `length` function.
400
400
public var length : Expression < Int ? > {
401
- return wrap ( self )
401
+ return " length " . wrap ( self )
402
402
}
403
403
404
404
/// Builds a copy of the expression wrapped with the `lower` function.
@@ -542,9 +542,9 @@ extension ExpressionType where UnderlyingType == String? {
542
542
/// - Returns: A copy of the expression wrapped with the `ltrim` function.
543
543
public func ltrim( _ characters: Set < Character > ? = nil ) -> Expression < UnderlyingType > {
544
544
guard let characters = characters else {
545
- return wrap ( self )
545
+ return " ltrim " . wrap ( self )
546
546
}
547
- return wrap ( [ self , String ( characters) ] )
547
+ return " ltrim " . wrap ( [ self , String ( characters) ] )
548
548
}
549
549
550
550
/// Builds a copy of the expression wrapped with the `rtrim` function.
@@ -560,9 +560,9 @@ extension ExpressionType where UnderlyingType == String? {
560
560
/// - Returns: A copy of the expression wrapped with the `rtrim` function.
561
561
public func rtrim( _ characters: Set < Character > ? = nil ) -> Expression < UnderlyingType > {
562
562
guard let characters = characters else {
563
- return wrap ( self )
563
+ return " rtrim " . wrap ( self )
564
564
}
565
- return wrap ( [ self , String ( characters) ] )
565
+ return " rtrim " . wrap ( [ self , String ( characters) ] )
566
566
}
567
567
568
568
/// Builds a copy of the expression wrapped with the `trim` function.
@@ -578,9 +578,9 @@ extension ExpressionType where UnderlyingType == String? {
578
578
/// - Returns: A copy of the expression wrapped with the `trim` function.
579
579
public func trim( _ characters: Set < Character > ? = nil ) -> Expression < UnderlyingType > {
580
580
guard let characters = characters else {
581
- return wrap ( self )
581
+ return " trim " . wrap ( self )
582
582
}
583
- return wrap ( [ self , String ( characters) ] )
583
+ return " trim " . wrap ( [ self , String ( characters) ] )
584
584
}
585
585
586
586
/// Builds a copy of the expression wrapped with the `replace` function.
0 commit comments