package clause

type Locking struct {
	Strength string
	Table    Table
	Options  string
}

// Name where clause name
func ( Locking) () string {
	return "FOR"
}

// Build build where clause
func ( Locking) ( Builder) {
	.WriteString(.Strength)
	if .Table.Name != "" {
		.WriteString(" OF ")
		.WriteQuoted(.Table)
	}

	if .Options != "" {
		.WriteByte(' ')
		.WriteString(.Options)
	}
}

// MergeClause merge order by clauses
func ( Locking) ( *Clause) {
	.Expression = 
}