Reputation: 12194
I'm playing with Swift; I downloaded https://github.com/FahimF/SQLiteDB and, when called from .swift file it runs fine ..I connect and get query results as:
let db = SQLiteDB.sharedInstance()
if let data = db.query("SELECT * FROM squadre") {
for row in data {
println(row["nome"]?.asString())
}
}
I would like to do the same thing in a playground but cannot use SQLiteDB inside the playground ... I get a:
"Use of unresolved identifier SQLiteDB"
Which is the way to use custom classes from playground?
Upvotes: 0
Views: 316