SQLUnaryOperator
public struct SQLUnaryOperator : Hashable
This type is an implementation detail of the query interface. Do not use it directly.
See https://github.com/groue/GRDB.swift/#the-query-interface
Low Level Query Interface
SQLUnaryOperator is a SQLite unary operator.
-
The SQL operator
Declaration
Swift
public let sql: String -
If true GRDB puts a white space between the operator and the operand.
Declaration
Swift
public let needsRightSpace: Bool -
Creates an unary operator
SQLUnaryOperator("~", needsRightSpace: false)Declaration
Swift
public init(_ sql: String, needsRightSpace: Bool) -
Creates an unary operator
SQLUnaryOperator("~", needsRightSpace: false)Declaration
Swift
public var hashValue: Int -
Creates an unary operator
SQLUnaryOperator("~", needsRightSpace: false)Declaration
Swift
public static func == (lhs: SQLUnaryOperator, rhs: SQLUnaryOperator) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
-
The
-unary operatorDeclaration
Swift
public static let minus = SQLUnaryOperator("-", needsRightSpace: false)
-
The
NOTunary operatorDeclaration
Swift
public static let not = SQLUnaryOperator("NOT", needsRightSpace: true)
View on GitHub
Install in Dash
SQLUnaryOperator Struct Reference