Module

Dexie.IndexedValue

Package
purescript-dexie
Repository
mushishi78/purescript-dexie

#IndexedValue Source

class IndexedValue a  where

Indexed DB can only index certain types. Specifically:

  • string
  • number
  • Date
  • ArrayBuffer
  • Typed arrays (Uint8Array, Float32Array, …, etc)
  • Arrays of (strings, numbers, Dates, ArrayBuffer, Typed array) or a mix of those.

And it cannot index:

  • boolean
  • undefined
  • Object
  • null

IndexedValue is attempt to represent this, but only covers strings and numbers at the moment. As a typeclasss it can be extended to handle newtypes and other custom types.

Documentation: dexie.org/docs/Indexable-Type

Members

Instances