feat: driver and account operate

This commit is contained in:
Noah Hsu
2022-06-09 17:11:46 +08:00
parent 5b73b68eb5
commit e1a2ed0436
13 changed files with 209 additions and 44 deletions

13
internal/store/util.go Normal file
View File

@ -0,0 +1,13 @@
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)
}