Skip to content

feat: implement .jitCode() support for Assertion actions#2170

Open
rafal-hawrylak wants to merge 1 commit into
mainfrom
jit_in_assertions
Open

feat: implement .jitCode() support for Assertion actions#2170
rafal-hawrylak wants to merge 1 commit into
mainfrom
jit_in_assertions

Conversation

@rafal-hawrylak
Copy link
Copy Markdown
Collaborator

@rafal-hawrylak rafal-hawrylak commented May 21, 2026

  • Add jit_code field to the Assertion message in protos/core.proto
  • Introduce JitAssertionResult type alias and jitCode method to Assertion builder (core/actions/assertion.ts)
  • Add strictly typed jitContextable parameter to Session.sqlxAction in core/session.ts
  • Update assertion compile() to handle jitCode execution bypassing standard string evaluation
  • Parse and apply jitContextable safely for assertions in core/session.ts
  • Add unit test coverage in core/main_test.ts to verify compilation output

- Add `jit_code` field to the `Assertion` message in `protos/core.proto`
- Fix missing protobuf imports and configuration in `protos/BUILD`
- Introduce `JitAssertionResult` type alias and `jitCode` method to `Assertion` builder (`core/actions/assertion.ts`)
- Add strictly typed `jitContextable` parameter to `Session.sqlxAction` in `core/session.ts`
- Update assertion `compile()` to handle `jitCode` execution bypassing standard string evaluation
- Parse and apply `jitContextable` safely for assertions in `core/session.ts`
- Add unit test coverage in `core/main_test.ts` to verify compilation output
@rafal-hawrylak rafal-hawrylak requested a review from a team as a code owner May 21, 2026 12:46
@rafal-hawrylak rafal-hawrylak requested review from Ceridan, andrzej-grudzien, apilaskowski and ikholopov-omni and removed request for a team May 21, 2026 12:46
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