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

Method LogDatabaseSyncEnd

backend/plugin/db/driver.go:245–258  ·  view source on GitHub ↗
(e string)

Source from the content-addressed store, hash-verified

243}
244
245func (o *ExecuteOptions) LogDatabaseSyncEnd(e string) {
246 if o == nil || o.CreateTaskRunLog == nil {
247 return
248 }
249 err := o.CreateTaskRunLog(time.Now(), &storepb.TaskRunLog{
250 Type: storepb.TaskRunLog_DATABASE_SYNC_END,
251 DatabaseSyncEnd: &storepb.TaskRunLog_DatabaseSyncEnd{
252 Error: e,
253 },
254 })
255 if err != nil {
256 slog.Warn("failed to log database sync start", log.BBError(err))
257 }
258}
259
260func (o *ExecuteOptions) LogSchemaDumpStart() {
261 if o == nil || o.CreateTaskRunLog == nil {

Callers 4

runStandardMigrationMethod · 0.95
runGhostMigrationMethod · 0.95
runVersionedReleaseMethod · 0.95
runDeclarativeReleaseMethod · 0.95

Calls 2

BBErrorFunction · 0.92
CreateTaskRunLogMethod · 0.80

Tested by

no test coverage detected