Skip to content

Instance Method

set(model:with:)

Using the given SQLQueryEncoder, transform the provided model into a series of key/value pairs and add an assignment for each pair.
@discardableResult func set(model: some Encodable & Sendable, with encoder: SQLQueryEncoder) throws -> Self

Parameters

model

An Encodable value whose keys and values will form a series of column assignments.

encoder

A configured SQLQueryEncoder to use.

Discussion

Column names are left unqualified.