Docs Menu
API Developer Guide / middleware / pub / client / database / setTransactionIsolationLevel

Service: setTransactionIsolationLevel

Set the isolation for a particular transaction. Use the isolation level as follow:

1. TRANSACTION_NONE: 0
2. TRANSACTION_READ_UNCOMMITTED: 1
3. TRANSACTION_READ_COMMITTED: 2
4. TRANSACTION_REPEATABLE_READ: 4
5. TRANSACTION_SERIALIZABLE: 8

Input Parameters:

Name Type Description
isolationLevel Integer Defines how or when the changes made by one operation become visible to others
txConn Object Transaction object obtained when startCommit service.