Instance Method
set(excludedContentOf:prefix:keyEncodingStrategy:nilEncodingStrategy:userInfo:)
Encodes the given
Encodable value to a sequence of key-value pairs and adds an assignment for each pair which uses the values each column was given in the original INSERT query’s VALUES list.@discardableResult func set(excludedContentOf model: some Encodable & Sendable, prefix: String? = nil, keyEncodingStrategy: SQLQueryEncoder.KeyEncodingStrategy = .useDefaultKeys, nilEncodingStrategy: SQLQueryEncoder.NilEncodingStrategy = .default, userInfo: [CodingUserInfoKey : any Sendable] = [:]) throws -> Self
Discussion
See SQLExcludedColumn and SQLQueryEncoder for additional details.
Important
The actual values stored in the provided model are not used by this method. The model is encoded, then the resulting values are discarded and the list of column names is used to repeatedly invoke set(excludedValueOf:). This is potentially very inefficient; a future version of the API will offer the ability to efficiently set the excluded values for all input columns in one operation.