|
NAMEksql_trans_commit ,
ksql_trans_rollback —
close a database transaction
LIBRARYlibrary “ksql”SYNOPSIS#include <sys/types.h>
#include <stdint.h>
#include <ksql.h>
enum ksqlc
enum ksqlc
DESCRIPTIONTheksql_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.
RETURN VALUESThis returnsKSQL_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.
SEE ALSOsqlite3_exec(3)
Visit the GSP FreeBSD Man Page Interface. |