alist/internal/store/util.go

14 lines
228 B
Go
Raw Normal View History

2022-06-09 09:11:46 +00:00
package store
import (
"fmt"
"github.com/alist-org/alist/v3/conf"
)
func columnName(name string) string {
if conf.Conf.Database.Type == "postgres" {
return fmt.Sprintf(`"%s"`, name)
}
return fmt.Sprintf("`%s`", name)
}