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.
15 lines
385 B
Go
15 lines
385 B
Go
package config
|
|
|
|
type Mssql struct {
|
|
GeneralDB `yaml:",inline" mapstructure:",squash"`
|
|
}
|
|
|
|
// dsn := "sqlserver://gorm:LoremIpsum86@localhost:9930?database=gorm"
|
|
func (m *Mssql) Dsn() string {
|
|
return "sqlserver://" + m.Username + ":" + m.Password + "@" + m.Path + ":" + m.Port + "?database=" + m.Dbname + "&encrypt=disable"
|
|
}
|
|
|
|
func (m *Mssql) GetLogMode() string {
|
|
return m.LogMode
|
|
}
|