1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-25 23:02:22 +02:00

сделал constants_starter

This commit is contained in:
Nikitin Aleksandr
2025-08-12 13:02:09 +03:00
parent 1ce50021d5
commit f7dafde4f0
14 changed files with 32 additions and 43 deletions

View File

@@ -6,7 +6,6 @@ import (
"context"
"errors"
"fmt"
"github.com/ManyakRus/starter/constants"
"github.com/ManyakRus/starter/log"
"github.com/ManyakRus/starter/port_checker"
"github.com/jackc/pgx/v5"
@@ -149,7 +148,7 @@ func GetConnectionString(ApplicationName string) string {
dsn += "user=" + Settings.DB_USER + " "
dsn += "password=" + Settings.DB_PASSWORD + " "
dsn += "dbname=" + Settings.DB_NAME + " "
dsn += "port=" + Settings.DB_PORT + " sslmode=disable TimeZone=" + constants.TIME_ZONE + " "
dsn += "port=" + Settings.DB_PORT + " sslmode=disable TimeZone=" + constants_starter.TIME_ZONE + " "
dsn += "application_name=" + ApplicationName + " "
dsn += "search_path=" + Settings.DB_SCHEMA + " "