lckt-server/config/gorm_sqlite.go
2025-04-09 12:17:33 +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")
}