You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
260 B
Go
18 lines
260 B
Go
11 months ago
|
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
|
||
|
}
|