Protocol
SQLSecondaryPredicateBuilder
Common definitions for any query builder which permits specifying a secondary predicate.
protocol SQLSecondaryPredicateBuilder : AnyObject
Overview
Expressions specified with
having(_:)are considered conjunctive (AND).Expressions specified with
orHaving(_:)are considered inclusively disjunctive (OR).
See SQLSecondaryPredicateGroupBuilder for details of grouping expressions (e.g. with parenthesis).
Topics
Instance Properties
secondaryPredicateThe secondary predicate under construction.
Instance Methods
having(_:)Adds an expression to this builder’sHAVINGclause byANDing.having(_:_:_:)Adds a column to encodable array comparison to this builder’sHAVINGclause byANDing.having(_:_:column:)Adds a column to column comparison to this builder’sHAVINGclause byANDing.having(_:between:and:)Shorthand forhaving(SQLBetween(operand, lowerBound, upperBound)).having(column:between:and:)Shorthand forhaving(SQLBetween(operand: SQLColumn(column), lowerBound: SQLBind(lowerBound), upperBound: SQLBind(upperBound))).having(group:)Builds a groupedHAVINGexpression by conjunction (AND).orHaving(_:)Adds an expression to this builder’sHAVINGclause byORing.orHaving(_:_:_:)Adds a column to encodable array comparison to this builder’sHAVINGclause byORing.orHaving(_:_:column:)Adds a column to column comparison to this builder’sHAVINGclause byORing.orHaving(_:between:and:)Shorthand fororHaving(SQLBetween(operand, lowerBound, upperBound)).orHaving(column:between:and:)Shorthand fororHaving(SQLBetween(operand: SQLColumn(column), lowerBound: SQLBind(lowerBound), upperBound: SQLBind(upperBound))).orHaving(group:)Builds a groupedHAVINGexpression by inclusive disjunction (‘OR’).
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.SQLPredicateBuilderCommon definitions for any query builder which permits specifying a primary predicate.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.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.