diff --git a/UUID-Support.md b/UUID-Support.md index 9337a4e..7fb9281 100644 --- a/UUID-Support.md +++ b/UUID-Support.md @@ -6,7 +6,7 @@ Import the following package: ```go import ( - pgtypeuuid "github.com/jackc/pgtype/ext/gofrs-uuid" + pgxuuid "github.com/jackc/pgx-gofrs-uuid" ) ``` @@ -18,11 +18,7 @@ if err != nil { // handle error } dbconfig.AfterConnect = func(ctx context.Context, conn *pgx.Conn) error { - conn.ConnInfo().RegisterDataType(pgtype.DataType{ - Value: &pgtypeuuid.UUID{}, - Name: "uuid", - OID: pgtype.UUIDOID, - }) + pgxuuid.Register(conn.TypeMap()) return nil } ```