Skip to content

Get indexDB selectively based on window property#802

Merged
themisir merged 1 commit into
isar:masterfrom
WenhaoWu:support-indexdb-from-web-worker
Oct 7, 2021
Merged

Get indexDB selectively based on window property#802
themisir merged 1 commit into
isar:masterfrom
WenhaoWu:support-indexdb-from-web-worker

Conversation

@WenhaoWu

@WenhaoWu WenhaoWu commented Oct 7, 2021

Copy link
Copy Markdown
Contributor

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

themisir commented Oct 7, 2021

Copy link
Copy Markdown
Contributor

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.

2 participants