Source File
returning.go
Belonging Package
gorm.io/gorm/clause
package clause
type Returning struct {
Columns []Column
}
// Name where clause name
func ( Returning) () string {
return "RETURNING"
}
// Build build where clause
func ( Returning) ( Builder) {
if len(.Columns) > 0 {
for , := range .Columns {
if > 0 {
.WriteByte(',')
}
.WriteQuoted()
}
} else {
.WriteByte('*')
}
}
// MergeClause merge order by clauses
func ( Returning) ( *Clause) {
if , := .Expression.(Returning); {
.Columns = append(.Columns, .Columns...)
}
.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. |