sql-kit icon indicating copy to clipboard operation
sql-kit copied to clipboard

SQLColumnUpdateBuilder.set does not provide options to specify encoding strategies

Open sidepelican opened this issue 2 years ago • 2 comments

https://github.com/vapor/sql-kit/blob/f7bbbb022cb52e1828a137bcab2bd1ea2a3e583d/Sources/SQLKit/Builders/SQLColumnUpdateBuilder.swift#L14-L16

.set(model:) does not provide a way to specify SQLQueryEncoder options. This will be in trouble when dealing with simple Codable types (that is not Fluent type)and have optional properties.

motivation is maybe similar to https://github.com/vapor/sql-kit/pull/161 .

sidepelican avatar Oct 24 '23 07:10 sidepelican

You're in luck; I'm currently working on an SQLKit PR that will address this (among numerous other concerns).

gwynne avatar Oct 24 '23 07:10 gwynne

any updates?

sidepelican avatar Dec 11 '23 05:12 sidepelican

This was addressed by #172.

gwynne avatar May 17 '24 18:05 gwynne