SQLBinaryOperator
public struct SQLBinaryOperator : Hashable
SQLBinaryOperator is a SQLite binary operator.
-
The SQL operator
Declaration
Swift
public let sql: String
-
The SQL for the negated operator, if any
Declaration
Swift
public let negatedSQL: String?
-
Creates a binary operator
SQLBinaryOperator("+") SQLBinaryOperator("IS", negated: "IS NOT")
Declaration
Swift
public init(_ sql: String, negated: String? = nil)
-
Returns the negated binary operator, if any
let operator = SQLBinaryOperator("IS", negated: "IS NOT") operator.negated!.sql // IS NOT
Declaration
Swift
public var negated: SQLBinaryOperator?
-
The hash value
Declaration
Swift
public var hashValue: Int
-
Equality operator
Declaration
Swift
public static func == (lhs: SQLBinaryOperator, rhs: SQLBinaryOperator) -> Bool