mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-19 23:04:22 +01:00
use uuid7 instead of bigserial
This commit is contained in:
@@ -8,10 +8,9 @@ import (
|
||||
)
|
||||
|
||||
func PgConnect(databaseUrl string) (*pgxpool.Pool, error) {
|
||||
var err error
|
||||
pgxPool, err := pgxpool.New(context.Background(), databaseUrl)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("pgxpool.Connect(%v): %w", databaseUrl, err)
|
||||
return nil, fmt.Errorf("pgxpool.New(%v): %w", databaseUrl, err)
|
||||
}
|
||||
return pgxPool, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user