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