func SchemeDriverAndAliases(name string) (string, []string) {
	if scheme, ok := schemeMap[name]; ok {
		driver := scheme.Driver
		if scheme.Override != "" {
			driver = scheme.Override
		}

		var aliases []string
		for _, alias := range scheme.Aliases {
			if alias == driver {
				continue
			}
			aliases = append(aliases, alias)
		}

		sort.Sort(ss(aliases))

		return driver, aliases
	}

	return "", nil
}
func SchemeDriverAndAliases(name string) (string, []string) {
	if scheme, ok := schemeMap[name]; ok {
		driver := scheme.Driver
		if scheme.Override != "" {
			driver = scheme.Override
		}

		var aliases []string
		for _, alias := range scheme.Aliases {
			if alias == driver {
				continue
			}
			aliases = append(aliases, alias)
		}

		sort.Sort(ss(aliases))

		return driver, aliases
	}

	return "", nil
}
func SchemeDriverAndAliases ( name string ) ( string , [ ] string ) { if scheme , ok := schemeMap [ name ] ; ok { driver := scheme . Driver if scheme . Override != " " { driver = scheme . Override } var aliases [ ] string for _ , alias := range scheme . Aliases { if alias == driver { continue } aliases = append ( aliases , alias ) } sort . Sort ( ss ( aliases ) ) return driver , aliases } return " " , nil }
// SchemeDriverAndAliases returns the registered driver and aliases for a
// database scheme.
SchemeDriverAndAliases returns the registered driver and aliases for a database scheme .