From 012310f53fd3c43d0a695950c7eab7bfc2f15358 Mon Sep 17 00:00:00 2001 From: Dennis Oberhoff Date: Wed, 23 Jan 2019 19:51:05 +0100 Subject: [PATCH 1/2] Add missing array operators --- Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift b/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift index 299123a4..c12abbe5 100644 --- a/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift +++ b/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift @@ -23,7 +23,7 @@ public struct PostgreSQLBinaryOperator: SQLBinaryOperator, Equatable, Expressibl /// See `SQLBinaryOperator`. public static let equal: PostgreSQLBinaryOperator = "=" - + /// See `SQLBinaryOperator`. public static let greaterThan: PostgreSQLBinaryOperator = ">" @@ -65,7 +65,16 @@ public struct PostgreSQLBinaryOperator: SQLBinaryOperator, Equatable, Expressibl /// See `SQLBinaryOperator`. public static let isNot: PostgreSQLBinaryOperator = "IS NOT" + + /// See `SQLBinaryOperator`. + public static let contains: PostgreSQLBinaryOperator = "@>" + /// See `SQLBinaryOperator`. + public static let containsBy: PostgreSQLBinaryOperator = "<@" + + /// See `SQLBinaryOperator`. + public static let overlap: PostgreSQLBinaryOperator = "&&" + /// See `SQLBinaryOperator`. public static let like: PostgreSQLBinaryOperator = "LIKE" From f592d101dd98c61dffcf10fa584a0e350d25deed Mon Sep 17 00:00:00 2001 From: Dennis Oberhoff Date: Tue, 29 Jan 2019 12:44:09 +0100 Subject: [PATCH 2/2] Renamed containsBy to isContainedBy --- Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift b/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift index c12abbe5..31775389 100644 --- a/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift +++ b/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift @@ -70,7 +70,7 @@ public struct PostgreSQLBinaryOperator: SQLBinaryOperator, Equatable, Expressibl public static let contains: PostgreSQLBinaryOperator = "@>" /// See `SQLBinaryOperator`. - public static let containsBy: PostgreSQLBinaryOperator = "<@" + public static let isContainedBy: PostgreSQLBinaryOperator = "<@" /// See `SQLBinaryOperator`. public static let overlap: PostgreSQLBinaryOperator = "&&"