This commit is contained in:
PB
2023-10-01 22:57:26 +02:00
parent 1909744c79
commit 71a43d17a1
5 changed files with 3 additions and 177 deletions

View File

@@ -1,16 +0,0 @@
package database
import (
"context"
"github.com/jackc/pgx/v4/pgxpool"
)
func Connect(connStr string) (*pgxpool.Pool, error) {
conn, err := pgxpool.Connect(context.Background(), connStr)
if err != nil {
return nil, err
}
return conn, nil
}