Mr.L
feat: add full alist source code for Docker build
7107f0b
raw
history blame contribute delete
235 Bytes
package db
import (
"fmt"
"github.com/alist-org/alist/v3/internal/conf"
)
func columnName(name string) string {
if conf.Conf.Database.Type == "postgres" {
return fmt.Sprintf(`"%s"`, name)
}
return fmt.Sprintf("`%s`", name)
}