Source File
locking.go
Belonging Package
gorm.io/gorm/clause
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 =
}
![]() |
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |