Hello!
I have a .db file, I can open and browse the file with a SQLite broswer with no issues, however when attempting to connect to the database using this code
do {
SQLDB.db = try Connection("http://trever.me:8000/com.plexapp.plugins.library.db")
} catch {
print(error)
}
I get an error "unable to open database file (code: 14)"
If I go to that web address, the database file downloads with no issues.
File extension has nothing to do with the internal binary format of your database. SQLite.swift is intended to work with _local_ copies of SQLite databases only.
Gotcha! Okay perfect, thank you!
Most helpful comment
File extension has nothing to do with the internal binary format of your database. SQLite.swift is intended to work with _local_ copies of SQLite databases only.