@lumjs/web-db
v1.0.0
Published
Database model helpers for Progressive Web Apps.
Downloads
127
Readme
lum.web-db.js
Database model helpers for Progressive Web Apps.
This is basically a set of abstract classes that make working with the various data storage APIs available in modern browsers a lot more straightforward.
It is NOT useful for any server-side database connections.
Exports
@lumjs/web-db
The main package module is all about using the idb library to create simple database models with document classes for each table/collection/data-store.
| Name | Description |
| ------------ | -------------------------------------------------------- |
| DBDoc | Abstract class for document model classes (inner-level). |
| DBModel | Abstract class for database model classes (outer-level). |
| jsonLike() | Helper function for detecting JSON strings. |
Plus a bunch of development APIs for more advanced uses (see docs or code).
@lumjs/web-db/storage
| Name | Description |
| --------------------- | ------------------------------------------------------------------ |
| getStorageKeys() | Get a list of keys from either LocalStorage or SessionStorage. |
| getAllStorageKeys() | Get keys from BOTH LocalStorage and SessionStorage. |
| StorageConfig | A config system using the Web Storage API and @lumjs/tyst. |
Plus dev APIs and helpers.
@lumjs/web-db/utils
| Name | Description |
| -------------- | -------------------------------------------------------- |
| filterKeys() | Filter a list given a prefix and/or suffix to look for. |
| stripKeys() | Strip a prefix and/or suffix from all strings in a list. |
Plus dev helpers.
Official URLs
This library can be found in two places:
Author
Timothy Totten [email protected]
