env txn

env txn
	[-nosync]
	[-nowait]
	[-parent txnid]
	[-sync]  

The env txn command begins a transaction. The returned transaction handle is bound to a Tcl command of the form env.txnX, where X is an integer starting at 0 (for example, env0.txn0 and env0.txn1). It is through this Tcl command that the script accesses the transaction methods.

The options are as follows:

The env txn command returns a transaction handle on success.

In the case of error, a Tcl error is thrown.