chore: rename store to db

This commit is contained in:
Noah Hsu
2022-06-25 21:36:35 +08:00
parent c5295f4d72
commit b474eefd87
12 changed files with 22 additions and 23 deletions

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

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