dimanche 9 août 2015

SQLite.swift and sql queries

Is there a way to verify if a sql query can apply with sqlite.swift? I got the scanner and parser working correctly, but when I put a query trying to get info of some table that doesn't exists in the database the app crashes. Im running Xcode 6 and there's no try catch.

let db = Database("/users/galaners/documents/ejemplo.sqlite")
let cons = db.prepare(textView.string!) //got the error here when the table doesn't exists in the DB, the textView has the query.

Sorry for my bad english.

Aucun commentaire:

Enregistrer un commentaire