rescript-reap

0.0.14 • Public • Published

This is currently in a pre-alpha state.

Goals:

  • a functional abstraction over IndexedDB over ReScript.
  • simple, succinct, readable database operations.
  • static typing guarantees for database records and their properties
  • monadic return values to eliminate null/undefined checks
  • typo-proofing property names in keys and indices.
  • ability to easily "escape" the library and work directly with IndexedDB bindings when necessary.

Limitations:

The following are intentional simplifications which may not suit every use case.

  • No multi-operation transactions (how much ACID safety do you really need for an in-browser database?)
  • Primary keys are represented as strings and aren't meant to be iterable. (Use GUIDs.)
  • Every object store is a well-typed list of a certain type of objects.
  • Undefined behavior if a function-valued index or key goes to something other than a JS object property. (The algorithm that converts lambda expressions to property name strings uses reflection.)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.140latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.140
0.0.130
0.0.120
0.0.110
0.0.101
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i rescript-reap

Weekly Downloads

1

Version

0.0.14

License

MIT

Unpacked Size

18.9 kB

Total Files

18

Last publish

Collaborators

  • webbureaucrat