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

Function normalizeNameByCaseSensitivity

backend/store/model/database.go:79–84  ·  view source on GitHub ↗

normalizeNameByCaseSensitivity normalizes a name based on case sensitivity. If caseSensitive is true, returns the name as-is; otherwise returns lowercase.

(name string, caseSensitive bool)

Source from the content-addressed store, hash-verified

77// normalizeNameByCaseSensitivity normalizes a name based on case sensitivity.
78// If caseSensitive is true, returns the name as-is; otherwise returns lowercase.
79func normalizeNameByCaseSensitivity(name string, caseSensitive bool) string {
80 if caseSensitive {
81 return name
82 }
83 return strings.ToLower(name)
84}
85
86func NewDatabaseMetadata(
87 metadata *storepb.DatabaseSchemaMetadata,

Callers 15

NewDatabaseMetadataFunction · 0.85
GetSchemaMetadataMethod · 0.85
GetLinkedDatabaseMethod · 0.85
CreateSchemaMethod · 0.85
DropSchemaMethod · 0.85
GetTableMethod · 0.85
GetIndexMethod · 0.85
GetViewMethod · 0.85
GetProcedureMethod · 0.85
GetPackageMethod · 0.85
GetMaterializedViewMethod · 0.85
GetExternalTableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected