stephencelis / SQLite.swift

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

Retrieving Date from Sqlite #880

Closed mgsaeedi closed 5 years ago

mgsaeedi commented 5 years ago

My sqlite table already is pre populated with Data using CoreData in another application. I want to read the Date from rows but it only gives a Binding number which I cannot convert to Swift Date. Any help will be appreciated

for row = try db.prepare("SELECT bookingDate FROM Bookings) { let bookingDate = rows[0] }