stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.57k stars 1.54k forks source link

make fromDatatypeValue throw #1242

Closed elfredpagan closed 4 months ago

elfredpagan commented 4 months ago

When using custom types, sometimes decoding can fail, say due to changes in the type structure. In this case decoding would fail and the only way to handle it is forcing a crash.

This change allows you to use try row.get() instead. Givng you the chance to handle the mismatch.

addresses: #778