chore: update backend dependencies

This commit is contained in:
Sam 2023-04-04 04:11:03 +02:00
parent 3e901ae10f
commit d17b43d2a7
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
16 changed files with 294 additions and 279 deletions

View file

@ -6,7 +6,7 @@ import (
"time"
dbpkg "codeberg.org/u1f320/pronouns.cc/backend/db"
"github.com/georgysavva/scany/pgxscan"
"github.com/georgysavva/scany/v2/pgxscan"
"github.com/joho/godotenv"
"github.com/rs/xid"
"github.com/urfave/cli/v2"

View file

@ -12,7 +12,7 @@ import (
"github.com/urfave/cli/v2"
// SQL driver
_ "github.com/jackc/pgx/v4/stdlib"
_ "github.com/jackc/pgx/v5/stdlib"
)
//go:embed *.sql

View file

@ -5,7 +5,7 @@ import (
"os"
"codeberg.org/u1f320/pronouns.cc/backend/db"
"github.com/jackc/pgx/v4/pgxpool"
"github.com/jackc/pgx/v5/pgxpool"
"github.com/joho/godotenv"
"github.com/urfave/cli/v2"
)
@ -25,7 +25,7 @@ func run(c *cli.Context) error {
ctx := c.Context
pool, err := pgxpool.Connect(ctx, os.Getenv("DATABASE_URL"))
pool, err := pgxpool.New(ctx, os.Getenv("DATABASE_URL"))
if err != nil {
fmt.Println("error opening database:", err)
return err