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

Function getIndexMethodType

backend/plugin/db/redshift/sync.go:649–656  ·  view source on GitHub ↗
(stmt string)

Source from the content-addressed store, hash-verified

647}
648
649func getIndexMethodType(stmt string) string {
650 re := regexp.MustCompile(`USING (\w+)`)
651 matches := re.FindStringSubmatch(stmt)
652 if len(matches) > 1 {
653 return matches[1]
654 }
655 return "btree" // Default for Redshift
656}
657
658func (d *Driver) getVersion(ctx context.Context) (string, error) {
659 // Redshift doesn't support SHOW server_version to retrieve the clean version number.

Callers 1

getIndexesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected