|
@@ -38,6 +38,7 @@ var (
|
38
|
38
|
func ConnectMSDB() {
|
39
|
39
|
connectionString := fmt.Sprintf("server=%s;user id=%s;password=%s;port=%d;database=%s",
|
40
|
40
|
host, user, password, port, dbname)
|
|
41
|
+ fmt.Println(connectionString)
|
41
|
42
|
db, err := gorm.Open("mssql", connectionString)
|
42
|
43
|
if err != nil {
|
43
|
44
|
fmt.Println("failed to connect database")
|