(dsnArray []string)
| 200 | } |
| 201 | |
| 202 | func storeDSN(dsnArray []string) { |
| 203 | dsnFilePath := path.Join(conf.GConf.WorkingRoot, ".dsn") |
| 204 | dsns := strings.Join(dsnArray, "\n") |
| 205 | err := ioutil.WriteFile(dsnFilePath, []byte(dsns), 0644) |
| 206 | if err != nil { |
| 207 | ConsoleLog.WithError(err).Error("store dsn file failed") |
| 208 | return |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | func loadDSN() []string { |
| 213 | dsnFilePath := path.Join(conf.GConf.WorkingRoot, ".dsn") |
no test coverage detected