ADBC
Arrow Database Connectivity
Loading...
Searching...
No Matches
Transaction Semantics

Functions

AdbcStatusCode AdbcConnectionCommit (struct AdbcConnection *connection, struct AdbcError *error)
 Commit any pending transactions. Only used if autocommit is disabled.
 
AdbcStatusCode AdbcConnectionRollback (struct AdbcConnection *connection, struct AdbcError *error)
 Roll back any pending transactions. Only used if autocommit is disabled.
 

Detailed Description

Connections start out in auto-commit mode by default (if applicable for the given vendor). Use AdbcConnectionSetOption and ADBC_CONNECTION_OPTION_AUTO_COMMIT to change this.

Function Documentation

◆ AdbcConnectionCommit()

AdbcStatusCode AdbcConnectionCommit ( struct AdbcConnection * connection,
struct AdbcError * error )

Commit any pending transactions. Only used if autocommit is disabled.

Behavior is undefined if this is mixed with SQL transaction statements.

◆ AdbcConnectionRollback()

AdbcStatusCode AdbcConnectionRollback ( struct AdbcConnection * connection,
struct AdbcError * error )

Roll back any pending transactions. Only used if autocommit is disabled.

Behavior is undefined if this is mixed with SQL transaction statements.