mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-25 23:04:03 +08:00
14 lines
221 B
Go
14 lines
221 B
Go
package model
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/Xhofe/alist/conf"
|
|
)
|
|
|
|
func columnName(name string) string {
|
|
if conf.Conf.Database.Type == "postgres" {
|
|
return fmt.Sprintf(`"%s"`, name)
|
|
}
|
|
return fmt.Sprintf("`%s`", name)
|
|
}
|