MCPcopy Index your code
hub / github.com/ent/ent / joinLock

Method joinLock

dialect/sql/builder.go:2593–2609  ·  view source on GitHub ↗
(b *Builder)

Source from the content-addressed store, hash-verified

2591}
2592
2593func (s *Selector) joinLock(b *Builder) {
2594 if s.lock == nil {
2595 return
2596 }
2597 b.Pad()
2598 if s.lock.clause != "" {
2599 b.WriteString(s.lock.clause)
2600 return
2601 }
2602 b.WriteString("FOR ").WriteString(string(s.lock.Strength))
2603 if len(s.lock.Tables) > 0 {
2604 b.WriteString(" OF ").IdentComma(s.lock.Tables...)
2605 }
2606 if s.lock.Action != "" {
2607 b.Pad().WriteString(string(s.lock.Action))
2608 }
2609}
2610
2611func (s *Selector) joinSetOps(b *Builder) {
2612 for _, op := range s.setOps {

Callers 1

QueryMethod · 0.95

Calls 3

PadMethod · 0.80
WriteStringMethod · 0.80
IdentCommaMethod · 0.80

Tested by

no test coverage detected