Skip to content

Document keep-by-omission for column_cases without default rules (#80) - #82

Merged
ababic merged 1 commit into
mainfrom
cursor/document-keep-by-omission-006d
Aug 14, 2026
Merged

ababic merged 1 commit into
mainfrom
cursor/document-keep-by-omission-006d

Conversation

@ababic

@ababic ababic commented Aug 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #80.

Documents the intended semantics for selective anonymization when a column has [[column_cases.…]] but no default [rules] entry:

  1. No matching case and no default rule → cell left unchanged (passthrough).
  2. Default rules strategy still applies when no case matches (unchanged).
  3. Cases-only is a supported pattern for “scrub matching rows; keep the rest,” with a cookbook example.

Also documents how this coexists with the explicit keep strategy from #77/#78 (preferred for “default scrub + allowlist exceptions”).

Rebased onto latest main (bbd2ddf); README conflict resolved by keeping both cookbooks.

Changes

  • README.md — selection semantics + two cookbooks (keep exceptions vs cases-only keep-by-omission)
  • docs/src/configuration.md — brief pointer covering both patterns
  • src/sql.rs — regression test for INSERT/COPY keep-by-omission and coverage

Test plan

  • Rebased onto origin/main; conflict in README.md resolved
  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test … column_cases_ (4 passed, including keep + keep-by-omission)
Open in Web Open in Cursor 

Document that column_cases without a matching case and without a
default rules entry leave the cell unchanged, and that this pattern is
supported for selective anonymization. Add a cookbook example and a
regression test covering INSERT/COPY passthrough plus coverage.

Co-authored-by: andy <andy@wearecrew.com>
@cursor
cursor Bot force-pushed the cursor/document-keep-by-omission-006d branch from 8e78f81 to 8d8cafe Compare August 14, 2026 15:48
@ababic
ababic marked this pull request as ready for review August 14, 2026 15:51
@ababic
ababic merged commit 3332399 into main Aug 14, 2026
10 checks passed
@ababic
ababic deleted the cursor/document-keep-by-omission-006d branch August 14, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document keep-by-omission when column has column_cases but no default rules entry

2 participants