Enumeration
SQLJoinMethod
The method used by a table join clause.
enum SQLJoinMethod
Overview
Used by SQLJoin and SQLJoinBuilder.
The set of joins expressible with this type is known to be very limited. This is partly on purpose, given the relatively large number of join types that exist across the various SQL dialects, the relatively few of those types which are supported by more than one dialect, and the ability to specify join methods as arbitrary SQLExpressions. It is also, however, a side effect of yet another of SQLKit’s current API design flaws, in this case the choice to have SQLJoinMethod serialize only to the join type, not even including the JOIN keyword, which makes it that much more difficult to express nontrivial join methods syntactically correctly.
Topics
Enumeration Cases
SQLJoinMethod.innerAn inner join.SQLJoinMethod.leftA left (outer) join.SQLJoinMethod.outerAn outer join not otherwise specified.SQLJoinMethod.rightA right (outer) join.
Instance Methods
serialize(to:)Invoked when a request is made to serialize the expression to raw SQL.
Relationships
Conforms To
SQLExpressionSwift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype
See Also
Clause Expressions
SQLAlterColumnDefinitionTypeA clause specifying a new data type to be applied to an existing column.SQLColumnAssignmentEncapsulates acolumn_name=valueexpression in the context of anUPDATEquery’s value assignment list. This is distinct from anSQLBinaryExpressionusing the.equaloperator in that the left side must be an unqualified column name, the operator must be=, and the right side may useSQLExcludedColumnwhen the assignment appears in theassignmentslist of aSQLConflictAction.update(assignments:predicate:)specification.SQLColumnConstraintAlgorithmColumn-level data constraints.SQLColumnDefinitionA clause expressing a column definition, for use when creating and altering tables.SQLConflictActionAn action to take when anINSERTquery encounters a unique constraint violation.SQLConflictResolutionStrategySpecifies a conflict resolution strategy and associated conditions for anINSERTquery. AnINSERTwith a conflict strategy is often refered to as anUPSERT(“insert or update”). Databases are not required to support any given subset of upsert functionality, or any at all.SQLDropBehaviorSpecifies a behavior when performing aDROPoperation on a database object which is referenced by other objects.SQLEnumDataTypeRepresents a data type which specifies an enumeration in the database.SQLExcludedColumnAn expression appearing on the right side of a column assignment which, when the assignment list is part of an upsert’s update acion, refers to the value which was originally to be inserted for the given column.SQLForeignKeyA completeFOREIGN KEYconstraint specification.SQLInsertModifierSimple helper for working around MySQL’s refusal to implement standard SQL. Only emits SQL when needed.SQLJoinEncapsulates a single SQLJOIN, specifying the join type, the right-side table, and condition.SQLLockingClauseAn SQL locking clause.SQLOrderByA pair of expressions, one describing a query sort key and the other a directionality for that key.SQLReturningA clause describing a list of values to be returned from a data-modifying query.