Extracted 10 helper functions: - buildIDSet: ID deduplication - resolveDeleteSet: Mode routing (cascade/force/validate) - expandWithDependents: Recursive dependent collection - validateNoDependents: Dependency validation - checkSingleIssueValidation: Per-issue dependent check - trackOrphanedIssues: Force-mode orphan tracking - collectOrphansForID: Per-issue orphan collection - buildSQLInClause: SQL placeholder generation - populateDeleteStats: Dry-run statistics - executeDelete: Actual deletion Code review fix: - Added rows.Err() check to catch iterator errors Ref: bd-55
64 KiB
64 KiB