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

Function WalkThroughWithContext

backend/plugin/schema/schema.go:406–415  ·  view source on GitHub ↗
(engine storepb.Engine, ctx WalkThroughContext, d *model.DatabaseMetadata, ast []base.AST)

Source from the content-addressed store, hash-verified

404}
405
406func WalkThroughWithContext(engine storepb.Engine, ctx WalkThroughContext, d *model.DatabaseMetadata, ast []base.AST) *storepb.Advice {
407 if f, ok := walkThroughsWithContext[engine]; ok {
408 return f(ctx, d, ast)
409 }
410 f, ok := walkThroughs[engine]
411 if !ok {
412 return nil
413 }
414 return f(d, ast)
415}

Callers 2

SQLReviewCheckFunction · 0.92
WalkThroughFunction · 0.70

Calls 1

fFunction · 0.85

Tested by

no test coverage detected