jiangshuai
2023-12-14 7fcd14a70b6dc27735b67f3c3f35acedfc489ed6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}