Skip to content

Commit 499c8e8

Browse files
committed
Improved naming
1 parent f7edbc3 commit 499c8e8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Import the packages
4040
```go
4141
import (
4242
"github.com/pgvector/pgvector-go"
43-
pgxvector "github.com/pgvector/pgvector-go/pgx"
43+
pgxvec "github.com/pgvector/pgvector-go/pgx"
4444
)
4545
```
4646

@@ -53,14 +53,14 @@ _, err := conn.Exec(ctx, "CREATE EXTENSION IF NOT EXISTS vector")
5353
Register the types with the connection
5454

5555
```go
56-
err := pgxvector.RegisterTypes(ctx, conn)
56+
err := pgxvec.RegisterTypes(ctx, conn)
5757
```
5858

5959
or the pool
6060

6161
```go
6262
config.AfterConnect = func(ctx context.Context, conn *pgx.Conn) error {
63-
return pgxvector.RegisterTypes(ctx, conn)
63+
return pgxvec.RegisterTypes(ctx, conn)
6464
}
6565
```
6666

pgx_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/jackc/pgx/v5/pgtype"
1111
"github.com/jackc/pgx/v5/pgxpool"
1212
"github.com/pgvector/pgvector-go"
13-
pgxvector "github.com/pgvector/pgvector-go/pgx"
13+
pgxvec "github.com/pgvector/pgvector-go/pgx"
1414
)
1515

1616
type PgxItem struct {
@@ -69,7 +69,7 @@ func TestPgx(t *testing.T) {
6969
panic(err)
7070
}
7171

72-
err = pgxvector.RegisterTypes(ctx, conn)
72+
err = pgxvec.RegisterTypes(ctx, conn)
7373
if err != nil {
7474
panic(err)
7575
}
@@ -175,7 +175,7 @@ func TestPgx(t *testing.T) {
175175
panic(err)
176176
}
177177
config.AfterConnect = func(ctx context.Context, conn *pgx.Conn) error {
178-
return pgxvector.RegisterTypes(ctx, conn)
178+
return pgxvec.RegisterTypes(ctx, conn)
179179
}
180180
pool, err := pgxpool.NewWithConfig(ctx, config)
181181
if err != nil {

0 commit comments

Comments
 (0)