@anfenn/dync 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -31,7 +31,7 @@ And see how Dync compares to the alternatives [below](#hasnt-this-already-been-d
31
31
  - Storage agnostic. Comes with `Memory`, `IndexedDB` and `Sqlite` adapters (for CapacitorJs & React Native), and extendable with your own custom adapters
32
32
  - Lazy loaded data keeps it in native storage, allowing low memory and fast app response, even with >100K records
33
33
  - Fast React Native Sqlite access via JSI
34
- - Dexie.js style collection based api, with query() escape hatch, and native storage performance e.g.:
34
+ - Single collection based api for both SQLite & IndexedDB, plus query() escape hatch for native storage api e.g.:
35
35
  - `db.myTable.add()` | `.update()` | `.where('myField').equals(42).first()`
36
36
  - `db.query()` is only intended to retrieve records, any mutations will be ignored by the sync engine:
37
37
  ```js
@@ -39,7 +39,7 @@ And see how Dync compares to the alternatives [below](#hasnt-this-already-been-d
39
39
  if (ctx instanceof DexieQueryContext) {
40
40
  return await ctx.table('items').where('value').startsWithIgnoreCase('dexie').toArray();
41
41
  } else if (ctx instanceof SqliteQueryContext) {
42
- return await ctx.queryRows('SELECT * FROM items WHERE value LIKE ?', ['sqlite%']);
42
+ return await ctx.queryRows('SELECT * FROM items WHERE value LIKE ? COLLATE NOCASE', ['sqlite%']);
43
43
  }
44
44
  });
45
45
  ```
@@ -120,7 +120,7 @@ And see how Dync compares to the alternatives [below](#hasnt-this-already-been-d
120
120
 
121
121
  ## Non-Goals
122
122
 
123
- - IndexedDB & SQL unified query language:
123
+ - Full IndexedDB & SQL unified query language:
124
124
  - Using IndexedDB functions or raw SQL will always be more expressive independently
125
125
  - No need to learn another api when you might only need one storage type
126
126
  - Would greatly increase complexity of this library
@@ -3771,4 +3771,4 @@ export {
3771
3771
  SqliteQueryContext,
3772
3772
  SQLiteAdapter2 as SQLiteAdapter
3773
3773
  };
3774
- //# sourceMappingURL=chunk-MOYMEJP5.js.map
3774
+ //# sourceMappingURL=chunk-6B5N26W3.js.map