Closed valerianb closed 6 months ago
When inserting, you can specify a keyEncodingStrategy:
try db.insert(into: myTable) .model(myModel, keyEncodingStrategy: .convertToSnakeCase) .run()
This change allows to pass a keyDecodingStrategy when using the convenience methods to decode models directly:
db.select() .from(myTable) .all(decoding: MyModel.self, keyDecodingStrategy: .convertFromSnakeCase)
Merging #161 (baf26a3) into main (a5c3df4) will not change coverage. The diff coverage is 0.00%.
0.00%
This was addressed by #172
When inserting, you can specify a keyEncodingStrategy:
This change allows to pass a keyDecodingStrategy when using the convenience methods to decode models directly: