Files
ai_proxy/server/config/gorm_sqlite.go
2026-03-03 06:05:51 +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")
}