BREAKING CHANGE: V2 of thr SDK #12

Merged
fenpaws merged 124 commits from develop/postgresql into main 2024-07-01 20:46:28 +00:00
Showing only changes of commit 5a242c6989 - Show all commits

View File

@ -24,8 +24,19 @@ import (
) )
func main() { func main() {
client := graph.NewGraphConnection() var err error
err := client.Connect(context.Background(), "your-endpoint", "your-username", "your-password") 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 { if err != nil {
fmt.Println(err) fmt.Println(err)
return return