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

Custom Database File Path #803

Open
ChristianNavolskyi opened this issue Jan 30, 2024 · 0 comments
Open

Custom Database File Path #803

ChristianNavolskyi opened this issue Jan 30, 2024 · 0 comments

Comments

@ChristianNavolskyi
Copy link

On iOS the database file is generated in the documents folder, that is accessible to the enduser, which I would like to avoid.

Would it be possible to have a method getDatabasePath in the FloorDatabase that provides the database file path?
Then we could decide there we want the database file to live at.

I imagine it like this:

abstract class MyDatabase extends FloorDatabase {
  @override
  Future<void> getDatabasePath(String name) {
    // custom implementation
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant