Skip to content

docs: demonstrate SQL session control in the transaction example - #417

Merged
KKould merged 1 commit into
mainfrom
example/session
Nov 28, 2026
Merged

KKould merged 1 commit into
mainfrom
example/session

Conversation

@KKould

@KKould KKould commented Nov 27, 2026

Copy link
Copy Markdown
Member

What problem does this PR solve?

Add corresponding issue link with summary if exists -->

Issue link: Follow-up to #409. The transaction example shows the Rust API but not SQL transaction control through a session.

What is changed and how it works?

Extend examples/transaction.rs to commit an update and roll back a delete through the same Session. Link to both APIs from the README.

Code changes

  • Has Rust code change
  • Has CI related scripts change

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Note for reviewer

Ran cargo run --example transaction: the final query found the row with the committed value 42 after the delete was rolled back. make fmt also passed.

@KKould KKould self-assigned this Nov 27, 2026
@KKould KKould added enhancement New feature or request documentation Improvements or additions to documentation and removed enhancement New feature or request labels Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.98%. Comparing base (2a57f09) to head (7de2cc9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #417   +/-   ##
=======================================
  Coverage   92.98%   92.98%           
=======================================
  Files         283      283           
  Lines       40118    40118           
=======================================
  Hits        37304    37304           
  Misses       2814     2814           
Flag Coverage Δ
rust 92.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@KKould
KKould merged commit 2ce67e6 into main Nov 28, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant