selfcheer
2024-07-19 1572f45e72cc0fa15c029f9ee2a08474104435e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package config
 
type Oracle struct {
    GeneralDB `yaml:",inline" mapstructure:",squash"`
}
 
func (m *Oracle) Dsn() string {
    return "oracle://" + m.Username + ":" + m.Password + "@" + m.Path + ":" + m.Port + "/" + m.Dbname + "?" + m.Config
 
}
 
func (m *Oracle) GetLogMode() string {
    return m.LogMode
}