File tree 2 files changed +23
-1
lines changed
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change
1
+ public enum PostgreSQLBoolLiteral : SQLBoolLiteral {
2
+ /// See `SQLBoolLiteral`.
3
+ public static var `true` : PostgreSQLBoolLiteral {
4
+ return . _true
5
+ }
6
+
7
+ /// See `SQLBoolLiteral`.
8
+ public static var `false` : PostgreSQLBoolLiteral {
9
+ return . _false
10
+ }
11
+
12
+ case _true
13
+ case _false
14
+
15
+ /// See `SQLSerializable`.
16
+ public func serialize( _ binds: inout [ Encodable ] ) -> String {
17
+ switch self {
18
+ case . _true: return " TRUE "
19
+ case . _false: return " FALSE "
20
+ }
21
+ }
22
+ }
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public typealias PostgreSQLJoin = GenericSQLJoin<
73
73
public typealias PostgreSQLJoinMethod = GenericSQLJoinMethod
74
74
75
75
/// See `SQLQuery`.
76
- public typealias PostgreSQLLiteral = GenericSQLLiteral < PostgreSQLDefaultLiteral >
76
+ public typealias PostgreSQLLiteral = GenericSQLLiteral < PostgreSQLDefaultLiteral , PostgreSQLBoolLiteral >
77
77
78
78
/// See `SQLQuery`.
79
79
public typealias PostgreSQLOrderBy = GenericSQLOrderBy < PostgreSQLExpression , PostgreSQLDirection >
You can’t perform that action at this time.
0 commit comments