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
|
||
|
}
|