Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public struct PostgreSQLBinaryOperator: SQLBinaryOperator, Equatable, Expressibl

/// See `SQLBinaryOperator`.
public static let equal: PostgreSQLBinaryOperator = "="

/// See `SQLBinaryOperator`.
public static let greaterThan: PostgreSQLBinaryOperator = ">"

Expand Down Expand Up @@ -65,7 +65,7 @@ public struct PostgreSQLBinaryOperator: SQLBinaryOperator, Equatable, Expressibl

/// See `SQLBinaryOperator`.
public static let isNot: PostgreSQLBinaryOperator = "IS NOT"

/// See `SQLBinaryOperator`.
public static let contains: PostgreSQLBinaryOperator = "@>"

Expand All @@ -74,7 +74,7 @@ public struct PostgreSQLBinaryOperator: SQLBinaryOperator, Equatable, Expressibl

/// See `SQLBinaryOperator`.
public static let overlap: PostgreSQLBinaryOperator = "&&"

/// See `SQLBinaryOperator`.
public static let like: PostgreSQLBinaryOperator = "LIKE"

Expand All @@ -87,6 +87,9 @@ public struct PostgreSQLBinaryOperator: SQLBinaryOperator, Equatable, Expressibl
/// See `SQLBinaryOperator`.
public static let regexp: PostgreSQLBinaryOperator = "~"

/// See `SQLBinaryOperator`.
public static let caseInsensitiveRegexp: PostgreSQLBinaryOperator = "~*"

/// See `SQLBinaryOperator`.
public static let notLike: PostgreSQLBinaryOperator = "NOT LIKE"

Expand All @@ -97,7 +100,10 @@ public struct PostgreSQLBinaryOperator: SQLBinaryOperator, Equatable, Expressibl
public static let notMatch: PostgreSQLBinaryOperator = "NOT MATCH"

/// See `SQLBinaryOperator`.
public static let notRegexp: PostgreSQLBinaryOperator = "NOT REGEXP"
public static let notRegexp: PostgreSQLBinaryOperator = "!~"

/// See `SQLBinaryOperator`.
public static let caseInsensitiveNotRegexp: PostgreSQLBinaryOperator = "!~*"

/// See `SQLBinaryOperator`.
public static let ilike: PostgreSQLBinaryOperator = "ILIKE"
Expand Down