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

Method ModifyStatement

soft_delete.go:117–121  ·  view source on GitHub ↗
(stmt *Statement)

Source from the content-addressed store, hash-verified

115}
116
117func (sd SoftDeleteUpdateClause) ModifyStatement(stmt *Statement) {
118 if stmt.SQL.Len() == 0 && !stmt.Statement.Unscoped {
119 SoftDeleteQueryClause(sd).ModifyStatement(stmt)
120 }
121}
122
123func (DeletedAt) DeleteClauses(f *schema.Field) []clause.Interface {
124 return []clause.Interface{SoftDeleteDeleteClause{Field: f, ZeroValue: parseZeroValueTag(f)}}

Callers

nothing calls this directly

Calls 3

SoftDeleteQueryClauseStruct · 0.85
LenMethod · 0.80
ModifyStatementMethod · 0.65

Tested by

no test coverage detected