MCPcopy Index your code
hub / github.com/apache/devlake / Execute

Method Execute

backend/server/services/remote/models/migration.go:42–56  ·  view source on GitHub ↗
(basicRes context.BasicRes)

Source from the content-addressed store, hash-verified

40}
41
42func (o ExecuteOperation) Execute(basicRes context.BasicRes) errors.Error {
43 var err errors.Error
44 db := basicRes.GetDal()
45 if o.Dialect != nil {
46 if db.Dialect() == *o.Dialect {
47 err = db.Exec(o.Sql)
48 }
49 } else {
50 err = db.Exec(o.Sql)
51 }
52 if o.IgnoreError {
53 return nil
54 }
55 return err
56}
57
58var _ Operation = (*ExecuteOperation)(nil)
59

Callers

nothing calls this directly

Calls 3

GetDalMethod · 0.65
DialectMethod · 0.65
ExecMethod · 0.65

Tested by

no test coverage detected