Transactions

A transaction is a series of read or write operations to a database. Every operation performed on the database results in a transaction because orphan operations are wrapped in transactions automatically. You can execute transactions together as a whole or not at all.

The operations that can make up a transaction include: put, get, and delete.

Put

A put operation is a record write operation on the database for a specific record, identified by its key and optional category. A put always replaces an entire value; there are no partial writes. Every put operation is part of some transaction, which can be implicit.

You can use the DatabaseConnection.Put() API to save a key-value pair. Refer to the Save data example for more information.

Get

A get operation is a record-read operation on the database for a specific key and optional category. A get always reads an entire value; there are no partial reads. Every get operation is part of some transaction, which can be implicit.

You can use the DatabaseConnection.Get() API to read data. Refer to the Read data example for more information.

Delete

A delete operation is a record deletion operation on the database of a specific key and optional category. Every delete operation is part of some transaction, which can be implicit.