Skip to content

Structure

SQLExcludedColumn

An 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.
struct SQLExcludedColumn

Overview

Note

If the serializer’s dialect does not support upserts, this expression silently evaluates to nothing at all.

Warning

At the time of this writing, MySQL 8.0’s recommended “table alias” syntax for excluded columns is not implemented, due to there currently being no way for a SQLDialect to vary its contents based on the database server version (for that matter, we don’t even have support for retrieving the version from MySQLNIO). For now, the deprecated VALUES() function is used unconditionally, which will throw warnings starting from MySQL 8.0.20. If this affects your usage, use a raw query or manually construct the necessary expressions to specify and use the alias for now.

Topics

Initializers

  • init(_:)
    Create an excluded column specifier.

Instance Properties

Instance Methods

Relationships

Conforms To

See Also

Clause Expressions