Cris
Cris

Reputation: 12194

Using Swift classes in playground

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

Answers (1)

Denis Kohl
Denis Kohl

Reputation: 750

you must integrate SQLiteDB in the Playground Projekt.

enter image description here

Upvotes: 1

Related Questions