# ForUpdateOption

sealed class ForUpdateOption

Clauses that perform a locking read at row-level for SELECT statements.

#### Samples

org.jetbrains.exposed.v1.tests.postgresql.PostgresqlTests.testForUpdateOptionsSyntax

#### Inheritors

ForUpdateBase
ForUpdate
LockInShareMode
LockInShareMode
ForUpdateNoWait
ForUpdateWait
ForUpdateSkipLocked

## Types

ForUpdate
Link copied to clipboard
data object ForUpdate : ForUpdateOption

Common clause that locks the rows retrieved by a SELECT statement against concurrent updates.

ForUpdateBase
Link copied to clipboard
abstract class ForUpdateBase(querySuffix: String, mode: ForUpdateOption.ForUpdateOrShareMode? = null, ofTables: Table) : ForUpdateOption

Common class since this is being used by at least two DBs

ForUpdateOrShareMode
Link copied to clipboard
interface ForUpdateOrShareMode

Interface that can be implemented in each database if they support modes

MariaDB
Link copied to clipboard
object MariaDB
MySQL
Link copied to clipboard
object MySQL
Oracle
Link copied to clipboard
object Oracle
PostgreSQL
Link copied to clipboard
object PostgreSQL

## Properties

querySuffix
Link copied to clipboard
open val querySuffix: String