Sqlite.swift: Supports .db files?

Created on 21 Feb 2017  路  2Comments  路  Source: stephencelis/SQLite.swift

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.

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.

All 2 comments

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!

Was this page helpful?
0 / 5 - 0 ratings