Skip to content

Should OpenDbRequest::set_on_upgrade_needed take a callback that returns a future? #30

@zecakeh

Description

@zecakeh

In the callback we might need to await a transaction to make sure everything happens in the correct order.

For example porting the example of the "Structuring the database" section of MDN's guide is currently not possible.

They recommend to wait for the createObjectStore transaction to be completed before adding data in it. In Rust code that requires turning the transaction into a future.

Metadata

Metadata

Assignees

Labels

ReleasedThis issue's resolution is now available in a published release

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions