Files
st/server/config/gorm_sqlite.go
2026-02-10 17:48:27 +08:00

14 lines
200 B
Go

package config
import (
"path/filepath"
)
type Sqlite struct {
GeneralDB `yaml:",inline" mapstructure:",squash"`
}
func (s *Sqlite) Dsn() string {
return filepath.Join(s.Path, s.Dbname+".db")
}