ForShare sets the lock configuration for suffixing the `SELECT` statement with the `FOR SHARE` clause.
(opts ...LockOption)
| 2376 | // ForShare sets the lock configuration for suffixing the |
| 2377 | // `SELECT` statement with the `FOR SHARE` clause. |
| 2378 | func (s *Selector) ForShare(opts ...LockOption) *Selector { |
| 2379 | return s.For(LockShare, opts...) |
| 2380 | } |
| 2381 | |
| 2382 | // ForUpdate sets the lock configuration for suffixing the |
| 2383 | // `SELECT` statement with the `FOR UPDATE` clause. |