Skip to content

Make pgvector available with JDBC syntax (#8633)#8638

Merged
eddumelendez merged 1 commit into
testcontainers:mainfrom
xenit-eu:pgvector-jdbc-url
May 20, 2024
Merged

Make pgvector available with JDBC syntax (#8633)#8638
eddumelendez merged 1 commit into
testcontainers:mainfrom
xenit-eu:pgvector-jdbc-url

Conversation

@thijslemmens

@thijslemmens thijslemmens commented May 16, 2024

Copy link
Copy Markdown
Contributor

Add support for pgvector in JDBC urls. Solving #8633
URL's like these are now supported:
jdbc:tc:pgvector:pg16:///databasename

This will spin up a pgvector/pgvector:pg16 container.

Comment on lines +17 to +19
private static final DockerImageName DEFAULT_IMAGE = DockerImageName
.parse("pgvector/pgvector")
.asCompatibleSubstituteFor("postgres");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private static final DockerImageName DEFAULT_IMAGE = DockerImageName
.parse("pgvector/pgvector")
.asCompatibleSubstituteFor("postgres");
private static final DockerImageName DEFAULT_IMAGE = DockerImageName
.parse("pgvector/pgvector");

@eddumelendez eddumelendez merged commit ec9651e into testcontainers:main May 20, 2024
@eddumelendez

Copy link
Copy Markdown
Member

Thanks for your contribution, @thijslemmens !

@thijslemmens

Copy link
Copy Markdown
Contributor Author

Thanks for your contribution, @thijslemmens !

My pleasure

fokion pushed a commit to fokion/testcontainers-java that referenced this pull request Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants