ForUpdate sets the lock configuration for suffixing the `SELECT` statement with the `FOR UPDATE` clause.
(opts ...LockOption)
| 2382 | // ForUpdate sets the lock configuration for suffixing the |
| 2383 | // `SELECT` statement with the `FOR UPDATE` clause. |
| 2384 | func (s *Selector) ForUpdate(opts ...LockOption) *Selector { |
| 2385 | return s.For(LockUpdate, opts...) |
| 2386 | } |
| 2387 | |
| 2388 | // Clone returns a duplicate of the selector, including all associated steps. It can be |
| 2389 | // used to prepare common SELECT statements and use them differently after the clone is made. |