Skip to content

Commit 870c4b7

Browse files
authored
Merge pull request vapor#119 from docterd/missing_array_operators
Add missing array operators
2 parents 92881d8 + f592d10 commit 870c4b7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift

+10-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public struct PostgreSQLBinaryOperator: SQLBinaryOperator, Equatable, Expressibl
2323

2424
/// See `SQLBinaryOperator`.
2525
public static let equal: PostgreSQLBinaryOperator = "="
26-
26+
2727
/// See `SQLBinaryOperator`.
2828
public static let greaterThan: PostgreSQLBinaryOperator = ">"
2929

@@ -65,7 +65,16 @@ public struct PostgreSQLBinaryOperator: SQLBinaryOperator, Equatable, Expressibl
6565

6666
/// See `SQLBinaryOperator`.
6767
public static let isNot: PostgreSQLBinaryOperator = "IS NOT"
68+
69+
/// See `SQLBinaryOperator`.
70+
public static let contains: PostgreSQLBinaryOperator = "@>"
6871

72+
/// See `SQLBinaryOperator`.
73+
public static let isContainedBy: PostgreSQLBinaryOperator = "<@"
74+
75+
/// See `SQLBinaryOperator`.
76+
public static let overlap: PostgreSQLBinaryOperator = "&&"
77+
6978
/// See `SQLBinaryOperator`.
7079
public static let like: PostgreSQLBinaryOperator = "LIKE"
7180

0 commit comments

Comments
 (0)