FIX THEMPLATE DATA BASE MULTY

This commit is contained in:
2025-08-18 14:08:18 +07:00
parent ed760a52b5
commit f953f6d646
4 changed files with 280 additions and 39 deletions

View File

@@ -118,13 +118,13 @@ func (s *service) addDatabase(name string, config config.DatabaseConfig) error {
defer s.mu.Unlock()
log.Printf("=== Database Connection Debug ===")
log.Printf("Database: %s", name)
log.Printf("Type: %s", config.Type)
log.Printf("Host: %s", config.Host)
log.Printf("Port: %d", config.Port)
log.Printf("Database: %s", config.Database)
log.Printf("Username: %s", config.Username)
log.Printf("SSLMode: %s", config.SSLMode)
// log.Printf("Database: %s", name)
// log.Printf("Type: %s", config.Type)
// log.Printf("Host: %s", config.Host)
// log.Printf("Port: %d", config.Port)
// log.Printf("Database: %s", config.Database)
// log.Printf("Username: %s", config.Username)
// log.Printf("SSLMode: %s", config.SSLMode)
var db *sql.DB
var err error