Skip to content

Enumeration

SQLLockingClause

An SQL locking clause.
enum SQLLockingClause

Overview

A locking clause is an optional clause added to a SELECT query to specify an additional locking mode for rows matched by the query, most often to improve performance when multiple transactions access and/or update the same data simultaneously.

The actual syntax for a locking clause is provided by the database’s dialect; when a dialect doesn’t support a particular type of lock (or none at all), this expression generates no serialized output.

See for(_:) and lockingClause.

Topics

Enumeration Cases

Instance Methods

Relationships

Conforms To

  • SQLExpression
  • Swift.Equatable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype

See Also

Clause Expressions