next up previous
Next: Table search Up: The primitive commands Previous: Creation of the

Job control and transaction control commands

A job is a session with Kappa. Use the primitive commands to begin and end a session. A transaction is a unit of database operation. Use also the primitive commands to begin and end a transaction.

The job and transaction control commands must be called whenever you use Kappa.

open(TableInfoList,^Status)
begins a job. If tables are specified, they will be locked.
close(^Status)
ends a job.
begin_transaction(TableInfoList,LDBMSInfoList,^Status)
begins a transaction. If tables are specified, they will be locked. Do not lock tables which were locked in read_only mode at the biginning of a job in exclusive mode here.
end_transaction(^Status)
ends a transaction.
roll_back(^Status)
cancels a transaction.