SQLBinaryOperator

public struct SQLBinaryOperator : 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

SQLBinaryOperator is a SQLite binary operator.

  • sql

    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)
  • Creates a binary operator

    SQLBinaryOperator("+")
    SQLBinaryOperator("IS", negated: "IS NOT")
    

    Declaration

    Swift

    public var hashValue: Int
  • 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?
  • Returns the negated binary operator, if any

    let operator = SQLBinaryOperator("IS", negated: "IS NOT")
    operator.negated!.sql  // IS NOT
    

    Declaration

    Swift

    public static func ==(lhs: SQLBinaryOperator, rhs: SQLBinaryOperator) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.