0

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Cris
  • 12,124
  • 27
  • 92
  • 159

1 Answers1

1

you must integrate SQLiteDB in the Playground Projekt.

enter image description here

Denis Kohl
  • 739
  • 8
  • 13