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