MCPcopy Index your code
hub / github.com/apache/answer / do

Method do

internal/migrations/init.go:95–103  ·  view source on GitHub ↗
(taskName string, fn func())

Source from the content-addressed store, hash-verified

93}
94
95func (m *Mentor) do(taskName string, fn func()) {
96 if m.err != nil || m.Done {
97 return
98 }
99 fn()
100 if m.err != nil {
101 m.err = fmt.Errorf("%s failed: %s", taskName, m.err)
102 }
103}
104
105func (m *Mentor) checkTableExist() {
106 m.Done, m.err = m.engine.Context(m.ctx).IsTableExist(&entity.Version{})

Callers 1

InitDBMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected