How to convert Sqlite.swift Binding to a primitive Swift type?

42 Views Asked by At

How can I get a primitive Swift type from a SQLite.swift Binding, I have this sample:

            for row in try db.prepare("select * from table") {
                let t = row[0]! as Int64

It shows me an error 'any Binding' is not convertible to 'Int64'

0

There are 0 best solutions below