You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`@dnvgl-electricgrid/sqljs-documentstore` Minimal, encrypted, sql friendly typed document store, with support for indexed columns. Protects against transactional conflicts.
4
+
The schema for each table is [id, json, ...indexedColumns]
*`Db` abstract class, extend it and add `TypedDocumentStore`s for each table => class mapping
14
+
*`TypedDocumentStore` is meant to map a class type to a table, and has read and write methods
15
+
*`LockedDatabase` is consumed in TypedDocumentStore. This is a transactional wrapper around sql.js. It handles transactional scope for multiple programmatic writes and ensures locking so separate txns can't collide.
16
+
*`sqlHelpers` has methods to load, save, etc
17
+
18
+
-----
19
+
### Getting started
20
+
21
+
first, load your database
22
+
recommend creating a wrapping "DocumentStores" class as shown below:
0 commit comments