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.

  • sql

    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) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.

  • The - unary operator

    Declaration

    Swift

    public static let minus = SQLUnaryOperator("-", needsRightSpace: false)
  • not

    The NOT unary operator

    Declaration

    Swift

    public static let not = SQLUnaryOperator("NOT", needsRightSpace: true)