MCPcopy Index your code
hub / github.com/bytebase/bytebase / LogSchemaDumpEnd

Method LogSchemaDumpEnd

backend/plugin/db/driver.go:273–286  ·  view source on GitHub ↗
(derr string)

Source from the content-addressed store, hash-verified

271}
272
273func (o *ExecuteOptions) LogSchemaDumpEnd(derr string) {
274 if o == nil || o.CreateTaskRunLog == nil {
275 return
276 }
277 err := o.CreateTaskRunLog(time.Now(), &storepb.TaskRunLog{
278 Type: storepb.TaskRunLog_SCHEMA_DUMP_END,
279 SchemaDumpEnd: &storepb.TaskRunLog_SchemaDumpEnd{
280 Error: derr,
281 },
282 })
283 if err != nil {
284 slog.Warn("failed to log schema dump end", log.BBError(err))
285 }
286}
287
288// LogCommandExecute logs the execution of a command.
289func (o *ExecuteOptions) LogCommandExecute(commandRange *storepb.Range, commandText string) {

Callers

nothing calls this directly

Calls 2

BBErrorFunction · 0.92
CreateTaskRunLogMethod · 0.80

Tested by

no test coverage detected