|
NAMEksql_trans_exclopen ,
ksql_trans_open ,
ksql_trans_singleopen —
open a database transaction
LIBRARYlibrary “ksql”SYNOPSIS#include <sys/types.h>
#include <stdint.h>
#include <ksql.h>
enum ksqlc
enum ksqlc
enum ksqlc
DESCRIPTIONTheksql_trans_exclopen (),
ksql_trans_open (), and
ksql_trans_singleopen () functions open transactions
with different lock states. All functions accept sql,
the database connection; and id, an identifier used in
error reporting and in making sure that transaction calls are symmetric. Each
of these functions must be followed by
ksql_trans_commit(3)
or
ksql_trans_rollback(3).
If If If Recursive transactions are disallowed. RETURN VALUESThis returnsKSQL_NOTOPEN if the database connection is
not open, KSQL_TRANS if a transaction is already 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. |