objectbox-dart icon indicating copy to clipboard operation
objectbox-dart copied to clipboard

support @index for Uint8List

Open gcxfd opened this issue 4 years ago • 4 comments

I think support @index for Uint8List is easy and very useful

gcxfd avatar Oct 13 '21 07:10 gcxfd

Thanks for the suggestion. For reference: this would be PropertyType.byteVector.

greenrobot-team avatar Oct 18 '21 06:10 greenrobot-team

Bumping this. Working in a context of a Web3 app, storing users public keys as Uint8list will be more efficient and would save us from the hassle of parsing bytes to string hex representations back and forth !

Amphaal avatar Apr 21 '23 07:04 Amphaal

@Amphaal Thanks for sharing your use case! To help us prioritize issues, please thumbs up the first comment if interested!

Edit: note that the objectbox package does not have web support.

greenrobot-team avatar Apr 24 '23 08:04 greenrobot-team

@Amphaal Thanks for sharing your use case! To help us prioritize issues, please thumbs up the first comment if interested!

Edit: note that the objectbox package does not have web support.

Yeah, found out Web target incompatibility of objectbox after a 2-days painful migration sprint from Hive, silly me 😆

I known that bringing Web compatibility will add a lot of troubles regarding Isolates, IndexedDB and JS number parsing... I have great hopes on the Flutter's team current work on WASM compatibility to alleviate these limitations. It would hopefully allow a much easier implementation on your side 🙏

Cheers !

Amphaal avatar Apr 24 '23 11:04 Amphaal