MCPcopy
hub / github.com/go-gorm/gorm / Expr

Function Expr

gorm.go:478–480  ·  view source on GitHub ↗

Expr returns clause.Expr, which can be used to pass SQL expression as params

(expr string, args ...interface{})

Source from the content-addressed store, hash-verified

476
477// Expr returns clause.Expr, which can be used to pass SQL expression as params
478func Expr(expr string, args ...interface{}) clause.Expr {
479 return clause.Expr{SQL: expr, Vars: args}
480}
481
482// SetupJoinTable setup join table schema
483func (db *DB) SetupJoinTable(model interface{}, field string, joinTable interface{}) error {

Callers 7

TestCreateFromSubQueryFunction · 0.92
TestUpdatesFunction · 0.92
TestUpdateColumnFunction · 0.92
TestUpdateReturningFunction · 0.92
TestUpdateFromFunction · 0.92
TestSelectWithVariablesFunction · 0.92
TestRawFunction · 0.92

Calls

no outgoing calls

Tested by 7

TestCreateFromSubQueryFunction · 0.74
TestUpdatesFunction · 0.74
TestUpdateColumnFunction · 0.74
TestUpdateReturningFunction · 0.74
TestUpdateFromFunction · 0.74
TestSelectWithVariablesFunction · 0.74
TestRawFunction · 0.74