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

Get indexDB selectively based on window property #802

Merged
merged 1 commit into from Oct 7, 2021

Conversation

WenhaoWu
Copy link
Contributor

@WenhaoWu WenhaoWu commented Oct 7, 2021

Currently, for web platform, hive uses indexDB from browser' s window object. In our use case we need to do certain database operations in web worker, where indexDB is only accessible from WorkerGlobalScope.

I understand that hive is not supposed to be used in web worker/isolate due to memory limitation, but our use case is simple and we will handle the call back carefully.

Here is a minimum example of how we are going to use hive in web worker. Please have a look and let us know if this is acceptable from hive's perspective.

@themisir
Copy link
Contributor

themisir commented Oct 7, 2021

Thanks for the contribution 😇

@themisir themisir merged commit 9dbad34 into isar:master Oct 7, 2021
mrdavidrees pushed a commit to mrdavidrees/hive that referenced this pull request Jan 16, 2022
Ensure HiveLists are treated as non-nullable in hive_generator (isar#728)

* Replaced ?. operator with . operator

Resolves error "The argument type 'HiveList<T>?' can't be assigned to the parameter type 'HiveList<T>'.

Closes issue isar#664.

* Ensuring nullable HiveLists are properly generated

Co-authored-by: Misir Jafarov <misir.ceferov@gmail.com>

Updated hive_generator dependencies (isar#765)

* Updated dependencies

* Changed version dependencies

Bump up hive_generator to v1.1.1

Get indexDB selectively based on window property (isar#802)

Co-authored-by: Wenhao Wu <wenhao.wu@signanthealth.com>

Add missing path parameter to HiveInterface methods (isar#776)

Fixes broken CI (isar#806)

* Update pubspec.yaml

* Migrated from mockito to mocktail

* Test on dart 2.14

Don't loose track of box objects if init crashes (isar#846)

feat: Add flush method to boxes (isar#852)

bump: Update to v2.0.5

Updated hive_generator analyzer dependency (isar#858)

bump up hive_generator to v1.1.2

Change pedantic to linter and fix warnings (isar#876)
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

Successfully merging this pull request may close these issues.

None yet

2 participants