NoExclusiveLockRule

Reports MySQL ALTER TABLE statements that request an exclusive lock.

Exclusive locks block concurrent access and are risky for migrations that run against live databases.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val defaultEnable: Boolean = true
Link copied to clipboard
open override val defaultSeverity: Severity
Link copied to clipboard
Link copied to clipboard
open override val id: RuleId
Link copied to clipboard
open override val targetDialect: DialectId

Functions

Link copied to clipboard
open fun isApplicable(context: RuleContext): Boolean
Link copied to clipboard
open override fun run(context: RuleContext, reporter: DiagnosticReporter)