Protocol
SQLPredicateBuilder
Common definitions for any query builder which permits specifying a primary predicate.
protocol SQLPredicateBuilder : AnyObject
Mentioned in
Overview
Expressions specified with
where(_:)are considered conjunctive (AND).Expressions specified with
orWhere(_:)are considered inclusively disjunctive (OR).
See SQLPredicateGroupBuilder for details of grouping expressions (e.g. with parenthesis).
Topics
Instance Properties
predicateThe predicate under construction.
Instance Methods
orWhere(_:)Adds an expression to this builder’sWHEREclause byORing.orWhere(_:_:_:)Adds a column to encodable array comparison to this builder’sWHEREclause byORing.orWhere(_:_:column:)Adds a column to column comparison to this builder’sWHEREclause byORing.orWhere(_:between:and:)Shorthand fororWhere(SQLBetween(operand, lowerBound, upperBound)).orWhere(column:between:and:)Shorthand fororWhere(SQLBetween(operand: SQLColumn(column), lowerBound: SQLBind(lowerBound), upperBound: SQLBind(upperBound))).orWhere(group:)Builds a groupedWHEREexpression by inclusive disjunction (OR).where(_:)Adds an expression to this builder’sWHEREclause byANDing.where(_:_:_:)Adds a column to encodable array comparison to this builder’sWHEREclause byANDing.where(_:_:column:)Adds a column to column comparison to this builder’sWHEREclause byANDing.where(_:between:and:)Shorthand forwhere(SQLBetween(operand, lower, upperBound)).where(column:between:and:)Shorthand forwhere(SQLBetween(operand: SQLColumn(column), lowerBound: SQLBind(lowerBound), upperBound: SQLBind(upperBound))).where(group:)Builds a groupedWHEREexpression by conjunction (AND).
Relationships
Inherited By
Conforming Types
See Also
Builder Protocols
SQLAliasedColumnListBuilderCommon definitions for query builders which permit specifying aliased column names.SQLColumnUpdateBuilderCommon definitions for query builders which support assigning values to columns.SQLJoinBuilderCommon definitions for any query builder which permits specifying joins.SQLPartialResultBuilderCommon definitions for any query builder which permits specifying range and ordering behaviors.SQLQueryBuilderBase definitions for builders which set up queries and execute them against a given database.SQLQueryFetcherCommon definitions forSQLQueryBuilders which support retrieving result rows.SQLReturningBuilderCommon definitions for any query builder which can return values from data-mutating queries.SQLSecondaryPredicateBuilderCommon definitions for any query builder which permits specifying a secondary predicate.SQLSubqueryClauseBuilderA builder which can construct - but not execute - a completeSELECTquery. Useful for building CTEs,CREATE TABLE ... SELECTclauses, etc., not to mention actualSELECTqueries.SQLUnqualifiedColumnListBuilderCommon definitions for query builders which permit or require specifying a list of unqualified column names.