docs(postgres): updated readme

This commit is contained in:
SoXX 2024-06-14 15:43:40 +02:00
parent 1da21024d7
commit 5a242c6989

View File

@ -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