MySQL Connector/C++
MySQL connector library for C and C++ applications
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Set_lock< Base, IMPL > Class Template Reference

Template for defining fluent api for CRUD operations. More...

Public Member Functions

Operation & lockShared (LockContention contention=LockContention::DEFAULT)
 Set a shared mode lock on any rows/documents that are read.
 
Operation & lockExclusive (LockContention contention=LockContention::DEFAULT)
 Set an exclusive mode lock on any rows/documents that are read.
 

Detailed Description

template<class Base, class IMPL>
class mysqlx::abi2::r0::internal::Set_lock< Base, IMPL >

Template for defining fluent api for CRUD operations.

Member Function Documentation

◆ lockShared()

Operation & lockShared ( LockContention  contention = LockContention::DEFAULT)
inline

Set a shared mode lock on any rows/documents that are read.

Other sessions can read, but not modify locked rows/documents.

◆ lockExclusive()

Operation & lockExclusive ( LockContention  contention = LockContention::DEFAULT)
inline

Set an exclusive mode lock on any rows/documents that are read.

Other sessions are blocked from modifying, locking, or reading the data in certain transaction isolation levels. The lock is released when the transaction is committed or rolled back.


The documentation for this class was generated from the following file: