Skip to content
It's Vapor Week! Celebrating 10 Years of Vapor Read more

Instance Method

set(_:to:)

Add an assignment setting the given column to the provided Encodable value.
@discardableResult func set(_ column: any SQLExpression, to bind: any Encodable & Sendable) -> Self

Parameters

column

The column whose value is to be set.

bind

The value to assign to the given column.

Discussion

The column name is left unqualified.