mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2026-05-11 09:52:42 +00:00
18 lines
260 B
Go
18 lines
260 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")
|
|
}
|
|
|
|
func (s *Sqlite) GetLogMode() string {
|
|
return s.LogMode
|
|
}
|