stephencelis / SQLite.swift

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

Cannot find Database in scope #1046

Closed Akeuuh closed 2 years ago

Akeuuh commented 3 years ago

Hi!

I'm trying to connect a prepopulated database as shown in the documentation

` import SQLite

class DB_Manager { let path = Bundle.main.path(forResource: "nameOfDatabase", ofType: "sqlite3") let db = Database(path, readonly: true)

} `

But Xcode tells me : Cannot find Database in scope

I've tried reinstall SQLite with Pods but it doesn't work. Do you know what's going on?

nathanfallet commented 2 years ago

We need more information to help you to resolve your issue. Do you have any git or source to allow us to check and reproduce the issue?

nathanfallet commented 2 years ago

Please ask on StackOverflow for this kind of questions (we are tracking bugs on GitHub)