Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup, export, restore SQL database using AirDrop/Firebase #1274

Open
nastasiupta opened this issue Jul 25, 2024 · 1 comment
Open

Backup, export, restore SQL database using AirDrop/Firebase #1274

nastasiupta opened this issue Jul 25, 2024 · 1 comment

Comments

@nastasiupta
Copy link

SQLite.swift version: 0.15.3
XCode: 15.4
Swift Package manager

This might sound odd.. but I can't find a solution how to export an existing database from one phone to another, like backup & restore...
The user can make daily backups of the database (sqlite file pushed to Firebase Storage or share to another iPhone using AirDrop), and restore any backups on a given type (download the file from Firebase Store and use it) but I'm facing some issues on how to do it...

@nastasiupta
Copy link
Author

nastasiupta commented Aug 5, 2024

Also I tried to see use the sql export as I saw in the documentation

import SQLite
....
let db = try Connection("path/to/unencrypted.sqlite3")
try db.sqlcipher_export(.uri("encrypted.sqlite3"), key: "secret")

Cannot infer contextual base in reference to member 'uri'
Value of type 'Connection' has no member 'sqlcipher_export'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant