stephencelis / SQLite.swift

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

make fromDatatypeValue throw #1242

Closed elfredpagan closed 8 months ago

elfredpagan commented 8 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