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

Function GetViewComparer

backend/plugin/schema/view_comparer.go:139–144  ·  view source on GitHub ↗

GetViewComparer returns the view comparer for a specific engine. If no engine-specific comparer is registered, it returns the default comparer.

(engine storepb.Engine)

Source from the content-addressed store, hash-verified

137// GetViewComparer returns the view comparer for a specific engine.
138// If no engine-specific comparer is registered, it returns the default comparer.
139func GetViewComparer(engine storepb.Engine) ViewComparer {
140 if comparer, exists := viewComparerRegistry[engine]; exists {
141 return comparer
142 }
143 return &DefaultViewComparer{}
144}
145
146// init registers the default comparer for common engines.
147func init() {

Callers 2

compareViewsFunction · 0.85
compareMaterializedViewsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected