Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BoundValue Implementation #738

Merged
merged 2 commits into from Jan 30, 2024
Merged

Conversation

jeffgbutler
Copy link
Member

Bound Values are rendered into SQL as bind parameter markers only, and their values are added to a parameter map.

This is useful when coding a function like the following:

  UpdateStatementProvider updateStatement = update(person)
    .set(age).equalTo(add(age, value(1)))  // value() function added in this PR
    .where(id, isEqualTo(5))
    .build()
    .render(RenderingStrategies.MYBATIS3);

Inspired by #737

@jeffgbutler jeffgbutler added this to the 1.5.1 milestone Jan 30, 2024
@coveralls
Copy link

coveralls commented Jan 30, 2024

Coverage Status

coverage: 100.0%. remained the same
when pulling 3592b30 on jeffgbutler:gh737
into 1dcdbfd on mybatis:master.

@jeffgbutler jeffgbutler merged commit f08f334 into mybatis:master Jan 30, 2024
4 checks passed
@jeffgbutler jeffgbutler deleted the gh737 branch January 30, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants