Skip to content

Refactor upsert/connectOrCreate helpers and add integration tests#15

Merged
prageeth merged 3 commits into
mainfrom
refactor
Feb 24, 2026
Merged

Refactor upsert/connectOrCreate helpers and add integration tests#15
prageeth merged 3 commits into
mainfrom
refactor

Conversation

@prageeth
Copy link
Copy Markdown
Member

@prageeth prageeth commented Feb 24, 2026

Summary

  • Extracted shared processUpsertItems and processConnectOrCreateItems helpers to deduplicate upsert and connectOrCreate processing logic across CASE 1 and CASE 2 in processNestedData
  • Fixed connectOrCreate in CASE 1 to handle both single-object and array forms (previously only CASE 2 handled arrays)
  • Added integration tests for array upserts, nested creates inside upsert update branches, and single-object connectOrCreate across SQLite, MySQL, and PostgreSQL

@prageeth prageeth mentioned this pull request Feb 24, 2026
@prageeth prageeth merged commit 2380211 into main Feb 24, 2026
8 checks passed
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.

1 participant