MCPcopy Create free account
hub / github.com/apecloud/myduckserver / EncodeIndexName

Function EncodeIndexName

catalog/identifier.go:35–37  ·  view source on GitHub ↗

EncodeIndexName uses a simple encoding scheme (table$$index) for better visibility which is useful for debugging.

(table, index string)

Source from the content-addressed store, hash-verified

33
34// EncodeIndexName uses a simple encoding scheme (table$$index) for better visibility which is useful for debugging.
35func EncodeIndexName(table, index string) string {
36 return table + "$$" + index
37}
38
39func DecodeIndexName(encodedName string) (string, string) {
40 parts := strings.Split(encodedName, "$$")

Callers 2

CreateIndexMethod · 0.85
DropIndexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected