GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
KSQL_TRANS_COMMIT(3) FreeBSD Library Functions Manual KSQL_TRANS_COMMIT(3)

ksql_trans_commit, ksql_trans_rollback
close a database transaction

library “ksql”

#include <sys/types.h>
#include <stdint.h>
#include <ksql.h>

enum ksqlc
ksql_trans_commit(struct ksql *sql, size_t id);

enum ksqlc
ksql_trans_rollback(struct ksql *sql, size_t id);

The ksql_trans_commit and ksql_trans_functions functions commit or roll-back active database transactions as opened with ksql_trans_open(3). It is an error to try to close a transaction that has not been opened. This follows the same underlying execution logic of ksql_exec(3). The id value is used in reporting errors and making sure that transaction calls are symmetric.

This returns KSQL_NOTOPEN if the database connection is not open, KSQL_TRANS if a transaction is not yet open, KSQL_DB if errors occurred on the database, or KSQL_OK on success.

sqlite3_exec(3)
April 3, 2018 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.