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
{{ message }}
Repository navigation
Commit 7e7b570
Browse filesBrowse the repository at this point in the historyBrowse files
Recompute path-scoped hashes when memory_rename_file renames rows with preserve_duplicate_paths=1, and carry the new hash through dbmem_content, dbmem_vault, and dbmem_vault_fts in the same transaction.
Reject renames for preserve_duplicate_paths rows created with save_content=0 because the original content is unavailable, so the new path-scoped hash cannot be recomputed safely.
Document the save_content interaction, add regression coverage for empty content and indexed vault/FTS rows, and bump SQLITE_DBMEMORY_VERSION to 1.3.4.
Copy file name to clipboardExpand all lines: API.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -337,7 +337,9 @@ Renames an indexed file path in memory without reprocessing content.
337
337
**Notes:**
338
338
- Updates `dbmem_content.path` and keeps any local `dbmem_content_source` metadata attached to the renamed logical path
339
339
- It does not rename the file on disk or change the stored `source_path` value
340
-
- Does not change `hash`, `value`, embeddings, or FTS entries
340
+
- With `preserve_duplicate_paths=1`, recomputes the path-scoped `hash` and updates related embedding and FTS rows
341
+
- With `preserve_duplicate_paths=1`, rename requires saved content; if `save_content=0` was used for the row, `memory_rename_file()` returns an error because the path-scoped hash cannot be recomputed safely
342
+
- Does not change `value` or stored embedding/FTS content
341
343
- Fails if `new_path` already exists because `dbmem_content.path` is unique
342
344
- Explicit directory markers can be renamed only to another trailing-slash marker path; this renames only the marker row, not child paths
343
345
- Fails if `old_path` matches more than one row across `path` and local `dbmem_content_source.source_path`; pass a unique logical path or exact local source path
0 commit comments