mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 04:48:45 +08:00
14 lines
234 B
Go
14 lines
234 B
Go
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)
|
|
}
|