Source File
locking.go
Belonging Package
gorm.io/gorm/clause
package clauseconst (LockingStrengthUpdate = "UPDATE"LockingStrengthShare = "SHARE"LockingOptionsSkipLocked = "SKIP LOCKED"LockingOptionsNoWait = "NOWAIT")type Locking struct {Strength stringTable TableOptions string}// Name where clause namefunc ( Locking) () string {return "FOR"}// Build build where clausefunc ( Locking) ( Builder) {.WriteString(.Strength)if .Table.Name != "" {.WriteString(" OF ").WriteQuoted(.Table)}if .Options != "" {.WriteByte(' ').WriteString(.Options)}}// MergeClause merge order by clausesfunc ( Locking) ( *Clause) {.Expression =}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |