0.0.14 • Published 2 years ago

rescript-reap v0.0.14

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
2 years ago

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.)
0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago