Skip to content

Conversation

ericsodev
Copy link

Closes #1210.

This PR adds a thenRef method when using the case builder:

eb
  .case('gender')
  .when(sql.lit('male'))
  .thenRef('first_name') // Equates to the existing .then(eb.ref('first_name'))
  .else(null)
  .end()
  .as('name')

Copy link

vercel bot commented Aug 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kysely ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 2, 2025 10:20pm

Copy link

pkg-pr-new bot commented Aug 2, 2025

kysely_koa_example

npm i https://pkg.pr.new/kysely-org/kysely@1531

commit: b675e3d

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 thenRef in eb.case.
1 participant