Skip to content

Add datasource BACKFILL skip support#162

Merged
gnzjgo merged 4 commits into
mainfrom
fix-datasource-backfill-skip
Jun 1, 2026
Merged

Add datasource BACKFILL skip support#162
gnzjgo merged 4 commits into
mainfrom
fix-datasource-backfill-skip

Conversation

@gnzjgo

@gnzjgo gnzjgo commented May 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds a backfill: "skip" option to defineDatasource.
  • Emits BACKFILL skip in generated .datasource output when the option is set.
  • Adds schema and generator coverage for the new option.

Fixes #161.

Reproducibility

Before this change, the issue example could not be represented by the SDK: adding backfill: "skip" to defineDatasource(...) was not part of DatasourceOptions, and generated .datasource output never included the BACKFILL skip directive.

This PR reproduces that path in tests by defining a datasource with:

defineDatasource("test_ds", {
  schema: { id: t.string() },
  backfill: "skip",
})

and asserting the generated .datasource content contains:

BACKFILL skip

Test plan

  • pnpm exec vitest run src/schema/datasource.test.ts src/generator/datasource.test.ts
  • pnpm exec tsc --noEmit

@gnzjgo gnzjgo merged commit c041ea6 into main Jun 1, 2026
2 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.

Add Data Source BACKFILL skip support

2 participants