csx 3 gadus atpakaļ
vecāks
revīzija
483e5b1aa4
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      service/ms_db.go

+ 1 - 0
service/ms_db.go Parādīt failu

@@ -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")