Command: TCOMMIT

Purpose: Signals the completion of a transaction that was started by a TSTART command. Changes to arrays as a result of SET, KILL, SETSUBTREE or MERGETO commands following a TSTART are committed permanently to the database.

Arguments:

None

Response

Single-line response

Server: +OK

Example

Client: TSTART
Server: +OK
Client: SET test1["xxx"] 4
Client: 1234
Client: SET test1["yyy"] 3
Client: abc
Client: SET test2["index",1234] 3
Client: xxx
Client: TCOMMIT
Server: +OK

For those familiar with the native language of GT.M and Caché systems, the second example is the equivalent of:

tcommit