# MySQL

object MySQL

## Types

ForShare
Link copied to clipboard
open class ForShare(mode: ForUpdateOption.MySQL.MODE? = null, ofTables: Table) : ForUpdateOption.ForUpdateBase

MySQL clause that acquires a shared lock for each row retrieved.

ForUpdate
Link copied to clipboard
class ForUpdate(mode: ForUpdateOption.MySQL.MODE? = null, ofTables: Table) : ForUpdateOption.ForUpdateBase

MySQL clause that locks the rows retrieved as though for update.

LockInShareMode
Link copied to clipboard
data object LockInShareMode : ForUpdateOption

This MySQL clause is equivalent to ForShare but exists for backward compatibility.

MODE
Link copied to clipboard
enum MODE : ForUpdateOption.ForUpdateOrShareMode, Enum<ForUpdateOption.MySQL.MODE>

Optional modes that determine what should happen if the retrieved rows are not immediately available.