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

Function extractBaseType

backend/plugin/schema/pg/metadata_migration.go:1262–1267  ·  view source on GitHub ↗
(typeName string)

Source from the content-addressed store, hash-verified

1260}
1261
1262func extractBaseType(typeName string) string {
1263 if idx := strings.Index(typeName, "("); idx >= 0 {
1264 return strings.TrimSpace(typeName[:idx])
1265 }
1266 return typeName
1267}
1268
1269func requiresUsingForSameType(oldType, newType string) bool {
1270 oldBaseType := extractBaseType(oldType)

Callers 2

requiresExplicitCastingFunction · 0.85
requiresUsingForSameTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected