https://kotlinlang.org logo
#juul-libraries
Title
# juul-libraries
b

benkuly

01/20/2023, 4:41 PM
It is really cool to have https://github.com/JuulLabs/indexeddb - but sometimes it is a bit too restrictive: https://github.com/JuulLabs/indexeddb/issues/90 Maybe it could make sense to expose the internal used IDB js-externals so one can workaround such issues?
t

travis

01/21/2023, 4:44 AM
The restrictions are mostly there to remove many foot guns. In the case of Boolean, according to the spec, they aren't supported. So a Boolean wouldn't work when using the pure JavaScript version of IndexedDB either: https://www.w3.org/TR/IndexedDB/#key-construct
For anyone else who might be following (or stumble on this thread), commented on originally linked GitHub issue the possible workaround — basically: using
1
and
0
rather than
Boolean
.
10 Views