chore: update backend dependencies
This commit is contained in:
parent
3e901ae10f
commit
d17b43d2a7
16 changed files with 294 additions and 279 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue