Hello Everyone, I am struggling to connect Growthb...
# ask-questions
f
Hello Everyone, I am struggling to connect Growthbook with postgres. I am not able to see metric results on the same. Is there any documentation around this? I am using Go SDK to fetch experiment results but I am not getting any metric when I run my code
Copy code
func main() {
	growthbook.SetLogger(&growthbook.DevLogger{})
	featureMap := GetFeatureMap()
	features := growthbook.ParseFeatureMap(featureMap)

	context := growthbook.NewContext().
		WithFeatures(features).WithTrackingCallback(func(experiment *growthbook.Experiment, result *growthbook.ExperimentResult) {
		log.Println("Viewed Experiment")
		log.Println("Experiment Id", experiment.Key)
		log.Println("Variation Id", result.VariationID)
	})
	gb := growthbook.New(context)
	
	gb.WithAttributes(growthbook.Attributes{
		"user_id":       "123",
		"loggedIn":      true,
		"experiment_id": "123",
	})
	if gb.Feature("test-feature").On {
		// Feature is enabled!
		fmt.Println("TEST FEATURE 1 IS ON AND WORKING")

	} else {
		fmt.Println("TEST FEATURE 1 IS OFF AND NOT WORKING")
	}

}
f
is the problem with postgres or this feature flagging code?
f
Like I am really trying to understand the whole issue its been like 2 days. But not able to resolve this
could be postgres or golang sdk