Source File
values.go
Belonging Package
gorm.io/gorm/clause
package clausetype Values struct {Columns []ColumnValues [][]interface{}}// Name from clause namefunc (Values) () string {return "VALUES"}// Build build from clausefunc ( Values) ( Builder) {if len(.Columns) > 0 {.WriteByte('(')for , := range .Columns {if > 0 {.WriteByte(',')}.WriteQuoted()}.WriteByte(')').WriteString(" VALUES ")for , := range .Values {if > 0 {.WriteByte(',')}.WriteByte('(').AddVar(, ...).WriteByte(')')}} else {.WriteString("DEFAULT VALUES")}}// MergeClause merge values clausesfunc ( Values) ( *Clause) {.Name = "".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. |