Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
KSQL_TRANS_COMMIT(3)	    Library Functions Manual	  KSQL_TRANS_COMMIT(3)

NAME
       ksql_trans_commit, ksql_trans_rollback -- close a database transaction

LIBRARY
       library "ksql"

SYNOPSIS
       #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);

DESCRIPTION
       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.

RETURN VALUES
       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.

SEE ALSO
       sqlite3_exec(3)

FreeBSD	Ports 14.quarterly	 April 3, 2018		  KSQL_TRANS_COMMIT(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=ksql_trans_commit&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help