dirsql 0.4.133 → 0.4.135

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.
@@ -374,9 +374,12 @@ foreign key violation: `task` row from `projects/beta/tasks/t1.json` has project
374
374
  batch that touches the same table carries the orphaning change and waits
375
375
  too.
376
376
 
377
- `ON DELETE` and `ON UPDATE` actions are not deferred. `dirsql` applies a changed
378
- file as a delete and an insert, so `ON DELETE CASCADE` deletes the children of a
379
- parent whose file is edited or renamed, even though their files still exist.
377
+ `ON DELETE` and `ON UPDATE` actions are not deferred. A parent table with a
378
+ `PRIMARY KEY`, or a `UNIQUE` column its rows fill, has an edited row `UPDATE`d
379
+ in place, so its children stay. A table without one has a changed row deleted
380
+ and inserted, so `ON DELETE CASCADE` deletes the children of a parent whose
381
+ file is edited. A row whose key changes, as when the key is taken from a
382
+ renamed file's name, is a delete and an insert either way.
380
383
 
381
384
  ### `on-file` row mapping
382
385
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dirsql",
3
- "version": "0.4.133",
3
+ "version": "0.4.135",
4
4
  "description": "Ephemeral SQL index over a local directory",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/thekevinscott/dirsql",
@@ -221,10 +221,10 @@
221
221
  ]
222
222
  },
223
223
  "optionalDependencies": {
224
- "@dirsql/lib-linux-x64-gnu": "0.4.133",
225
- "@dirsql/lib-linux-arm64-gnu": "0.4.133",
226
- "@dirsql/lib-darwin-x64": "0.4.133",
227
- "@dirsql/lib-darwin-arm64": "0.4.133",
228
- "@dirsql/lib-win32-x64-msvc": "0.4.133"
224
+ "@dirsql/lib-linux-x64-gnu": "0.4.135",
225
+ "@dirsql/lib-linux-arm64-gnu": "0.4.135",
226
+ "@dirsql/lib-darwin-x64": "0.4.135",
227
+ "@dirsql/lib-darwin-arm64": "0.4.135",
228
+ "@dirsql/lib-win32-x64-msvc": "0.4.135"
229
229
  }
230
230
  }