Skip to content

Conversation

hypnotic-frog
Copy link

@hypnotic-frog hypnotic-frog commented Sep 27, 2025

This change extends the C bindings to include transaction support, enabling client SDKs that rely on the C FFI layer to begin, commit, and roll back transactions

What’s included:

  • libsql_tx_begin - start a transaction with a configurable behavior
  • libsql_tx_commit - commit the transaction
  • libsql_tx_rollback - roll back the transaction
  • libsql_tx_free - release the transaction handle without implicit commit/rollback

Other changes:

  • Updated types.rs to define the transaction wrapper and handle type
  • Updated example.c

Linked issues:
Closes #2168
Helps address SDK issue libsql-client-dotnet/issues/21

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 C bindings for transaction support
1 participant