Fixed CI #2

Merged
SoXX merged 7 commits from ci/gitea into main 2024-07-19 13:14:00 +00:00
Showing only changes of commit 652b2ea716 - Show all commits

View File

@ -33,24 +33,22 @@ package main
import (
"context"
"fmt"
"log"
"git.dragse.it/anthrove/otter-space-sdk/v2/pkg/database"
"git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models"
)
func main() {
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")
ctx := context.Background()
cfg := models.DatabaseConfig{}
pgClient := database.NewPostgresqlConnection()
err := pgClient.Connect(ctx, cfg)
if err != nil {
fmt.Println(err)
return
log.Panic(err)
}
// further usage of the client...
}
```