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); {.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. |