This commit is contained in:
merdan 2023-05-03 13:34:50 +05:00
parent 26f9cd42eb
commit 26f5ca2034
1 changed files with 3 additions and 1 deletions

View File

@ -13,8 +13,10 @@ import (
) )
func main() { func main() {
// Retrieve database connection information from environment variables // Retrieve database connection information from environment variables
dsn := os.Getenv("DB_DSN") dsn := os.Getenv("BAZA")
log.Println(dsn)
// Connect to the database // Connect to the database
db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{})