Condition

public enum Condition : Buildable

An enumeration of condition operators supported in Filter and Having.

  • The SQL == operator.

    Declaration

    Swift

    case equal
  • The SQL != operator.

    Declaration

    Swift

    case notEqual
  • The SQL > operator.

    Declaration

    Swift

    case greaterThan
  • The SQL < operator.

    Declaration

    Swift

    case lessThan
  • The SQL >= operator.

    Declaration

    Swift

    case greaterThanOrEqual
  • The SQL <= operator.

    Declaration

    Swift

    case lessThanOrEqual
  • The SQL BETWEEN operator.

    Declaration

    Swift

    case between
  • The SQL NOT BETWEEN operator.

    Declaration

    Swift

    case notBetween
  • The SQL LIKE operator.

    Declaration

    Swift

    case like
  • The SQL LIKE operator.

    Declaration

    Swift

    case notLike
  • in

    The SQL IN operator.

    Declaration

    Swift

    case `in`
  • The SQL NOT IN operator.

    Declaration

    Swift

    case notIn
  • The SQL EXISTS operator.

    Declaration

    Swift

    case exists
  • The SQL NOT EXISTS operator.

    Declaration

    Swift

    case notExists
  • The SQL IS NULL operator.

    Declaration

    Swift

    case isNull
  • The SQL IS NOT NULL operator.

    Declaration

    Swift

    case isNotNull
  • and

    The SQL AND operator.

    Declaration

    Swift

    case and
  • or

    The SQL OR operator.

    Declaration

    Swift

    case or
  • Build the condition, i.e., return its representation as a String.

    Declaration

    Swift

    public func build(queryBuilder: QueryBuilder) -> String

    Parameters

    queryBuilder

    The QueryBuilder to use.

    Return Value

    A String representation of the condition.