Filter

public struct Filter : ConditionalClause, QueryFilterProtocol

A condition used in an SQL WHERE or ON clause.

  • Declaration

    Swift

    public typealias ClauseType = Filter
  • Declaration

    Swift

    public typealias ColumnExpressionType = ScalarColumnExpression
  • lhs

    The left hand side of the conditional clause.

    Declaration

    Swift

    public let lhs: Predicate<Filter, ScalarColumnExpression>?
  • rhs

    The right hand side of the conditional clause.

    Declaration

    Swift

    public let rhs: Predicate<Filter, ScalarColumnExpression>?
  • The operator of the conditional clause.

    Declaration

    Swift

    public let condition: Condition
  • Create a Filter clause using the isNull operator.

    Declaration

    Swift

    public func isNull() -> Filter

    Return Value

    A Filter containing the clause.

  • Create a Filter clause using the isNotNull operator.

    Declaration

    Swift

    public func isNotNull() -> Filter

    Return Value

    A Filter containing the clause.