stephencelis / SQLite.swift

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

Data type casting #1107

Open krunal545 opened 2 years ago

krunal545 commented 2 years ago

I have a column in the table which contain both Double and Int value. So when I read the data with Int or Double type it threw me an error.

(vl[Expression<Double>("obal")]) as? Int

Can someone please guide how can I fetch the data with Double and Int type.