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