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

Method LogCommandResponse

backend/plugin/db/driver.go:308–323  ·  view source on GitHub ↗
(affectedRows int64, allAffectedRows []int64, rerr string)

Source from the content-addressed store, hash-verified

306}
307
308func (o *ExecuteOptions) LogCommandResponse(affectedRows int64, allAffectedRows []int64, rerr string) {
309 if o == nil || o.CreateTaskRunLog == nil {
310 return
311 }
312 err := o.CreateTaskRunLog(time.Now(), &storepb.TaskRunLog{
313 Type: storepb.TaskRunLog_COMMAND_RESPONSE,
314 CommandResponse: &storepb.TaskRunLog_CommandResponse{
315 AffectedRows: affectedRows,
316 AllAffectedRows: allAffectedRows,
317 Error: rerr,
318 },
319 })
320 if err != nil {
321 slog.Warn("failed to log command response", log.BBError(err))
322 }
323}
324
325func (o *ExecuteOptions) LogGhostMigrationStart() {
326 if o == nil || o.CreateTaskRunLog == nil {

Callers 15

ExecuteMethod · 0.80
ExecuteMethod · 0.80
ExecuteMethod · 0.80

Calls 2

BBErrorFunction · 0.92
CreateTaskRunLogMethod · 0.80

Tested by

no test coverage detected