From 5a242c69898abe72db784148126c580b87233c1e Mon Sep 17 00:00:00 2001 From: soxx Date: Fri, 14 Jun 2024 15:43:40 +0200 Subject: [PATCH] docs(postgres): updated readme --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 732fd42..ffd7f3f 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,19 @@ import ( ) func main() { - client := graph.NewGraphConnection() - err := client.Connect(context.Background(), "your-endpoint", "your-username", "your-password") + var err error + dbDebug := false + ctx := context.Background() + + pgClient := database.NewPostgresqlConnection(dbDebug) + err = pgClient.Connect(ctx, "your-endpoint", "your-username", "your-password", "anthrove", 5432, "disable", "Europe/Berlin") + if err != nil { + fmt.Println(err) + return + } + + graphClient := database.NewGraphConnection(dbDebug) + err = graphClient.Connect(ctx, "your-endpoint", "your-username", "your-password", "NOT USED",0,"NOT USED","NOT USED") if err != nil { fmt.Println(err) return