MySQL Connector/C++
MySQL connector library for C and C++ applications
|
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. | |
Template for defining fluent api for CRUD operations.
|
inline |
Set a shared mode lock on any rows/documents that are read.
Other sessions can read, but not modify locked rows/documents.
|
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.