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

enableMigrations param for web implementation. #2992

Closed
davidmartos96 opened this issue May 5, 2024 · 1 comment
Closed

enableMigrations param for web implementation. #2992

davidmartos96 opened this issue May 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@davidmartos96
Copy link
Contributor

Would it be possible to use the same enableMigrations configuration in a Web setup like this one?

DatabaseConnection connect() {
  return DatabaseConnection.delayed(Future(() async {
    final db = await WasmDatabase.open(
      databaseName: webDbName,
      sqlite3Uri: _sqlite3Uri,
      driftWorkerUri: _driftWorkerUri,
    );

    final conn = db.resolvedExecutor;
    return conn;
  }));
}
@davidmartos96 davidmartos96 added the enhancement New feature or request label May 5, 2024
@simolus3
Copy link
Owner

simolus3 commented May 5, 2024

Good call, I was just to lazy to implement it right away because it requires changes to the protocol between the worker and the main tab. Fixed in f229915 (but you'll also have to update your drift worker once that is released).

@simolus3 simolus3 closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants