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

Function makePrimaryKeyIndex

backend/api/mcp/tool_schema_test.go:72–80  ·  view source on GitHub ↗
(name string, columns []string)

Source from the content-addressed store, hash-verified

70}
71
72func makePrimaryKeyIndex(name string, columns []string) map[string]any {
73 return map[string]any{
74 "name": name,
75 "expressions": columns,
76 "type": "btree",
77 "unique": true,
78 "primary": true,
79 }
80}
81
82func makeIndex(name string, unique bool, columns []string) map[string]any {
83 return map[string]any{

Calls

no outgoing calls

Tested by

no test coverage detected