Provides database-specific locking options like FOR UPDATE and FOR SHARE.
// Source: https://github.com/JetBrains/Exposed | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package org.jetbrains.exposed.v1.core.vendors
import org.jetbrains.exposed.v1.core.InternalApi
import org.jetbrains.exposed.v1.core.Table
/**
* Clauses that perform a locking read at row-level for SELECT statements.
*
* @sample org.jetbrains.exposed.v1.tests.postgresql.PostgresqlTests.testForUpdateOptionsSyntax
*/
sealed class ForUpdateOption(open val querySuffix: String) {
/** @suppress */
@InternalApi
data object NoForUpdateOption : ForUpdateOption("") {
override val querySuffix: String get() = error("querySuffix should not be called for NoForUpdateOption obj
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key