MCPcopy Create free account
hub / github.com/bytebase/bytebase / LogSchemaDumpStart

Method LogSchemaDumpStart

backend/plugin/db/driver.go:260–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258}
259
260func (o *ExecuteOptions) LogSchemaDumpStart() {
261 if o == nil || o.CreateTaskRunLog == nil {
262 return
263 }
264 err := o.CreateTaskRunLog(time.Now(), &storepb.TaskRunLog{
265 Type: storepb.TaskRunLog_SCHEMA_DUMP_START,
266 SchemaDumpStart: &storepb.TaskRunLog_SchemaDumpStart{},
267 })
268 if err != nil {
269 slog.Warn("failed to log schema dump start", log.BBError(err))
270 }
271}
272
273func (o *ExecuteOptions) LogSchemaDumpEnd(derr string) {
274 if o == nil || o.CreateTaskRunLog == nil {

Callers

nothing calls this directly

Calls 2

BBErrorFunction · 0.92
CreateTaskRunLogMethod · 0.80

Tested by

no test coverage detected