//NewDBConnection establishes a new DB connection
NewDBConnection establishes a new DB connection
// NewDBConnection establishes a new DB connection
func NewDBConnection() (*gorm.DB, error) {
	dsn, err := prepareConnectionParams()
	if err != nil {
		return nil, err
	}
	db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{})
	if err != nil {
		return nil, err
	}
	return db, nil
}
func NewDBConnection ( ) ( * gorm . DB , error ) { dsn , err := prepareConnectionParams ( ) if err != nil { return nil , err } db , err := gorm . Open ( postgres . Open ( dsn ) , & gorm . Config { } ) if err != nil { return nil , err } return db , nil }
NewDBConnection establishes a new DB connection
NewDBConnection establishes a new DB connection