Skip to content

Commit

Permalink
remove test data
Browse files Browse the repository at this point in the history
  • Loading branch information
gireesh-naidu committed Jan 18, 2024
1 parent e060bdd commit 2a89c85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/sql/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Config struct {
Port string `env:"PG_PORT" envDefault:"5432"`
User string `env:"PG_USER" envDefault:""`
Password string `env:"PG_PASSWORD" envDefault:"" secretData:"-"`
Database string `env:"PG_DATABASE" envDefault:"orchestrator_jatin"`
Database string `env:"PG_DATABASE" envDefault:"orchestrator"`
ApplicationName string `env:"APP" envDefault:"orchestrator"`
LogQuery bool `env:"PG_LOG_QUERY" envDefault:"true"`
LogAllQuery bool `env:"PG_LOG_ALL_QUERY" envDefault:"false"`
Expand All @@ -55,7 +55,7 @@ func NewDbConnection(cfg *Config, logger *zap.SugaredLogger) (*pg.DB, error) {
ApplicationName: cfg.ApplicationName,
}
dbConnection := pg.Connect(&options)
//check db connection
// check db connection
var test string
_, err := dbConnection.QueryOne(&test, `SELECT 1`)

Expand All @@ -66,7 +66,7 @@ func NewDbConnection(cfg *Config, logger *zap.SugaredLogger) (*pg.DB, error) {
logger.Infow("connected with db", "db", obfuscateSecretTags(cfg))
}

//--------------
// --------------
dbConnection.OnQueryProcessed(func(event *pg.QueryProcessedEvent) {
queryDuration := time.Since(event.StartTime)

Expand Down

0 comments on commit 2a89c85

Please sign in to comment.