Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Connection to pgvecto.rs Instance via DBI (R) #623

Open
henningsway opened this issue Dec 17, 2024 · 1 comment
Open

Enable Connection to pgvecto.rs Instance via DBI (R) #623

henningsway opened this issue Dec 17, 2024 · 1 comment
Assignees

Comments

@henningsway
Copy link

henningsway commented Dec 17, 2024

Hey there!

I really like to use d(b)plyr and ggplot2 for exploring the content of a database. Typically in R with Postgres, the connection is set up as described here: https://github.com/r-dbi/RPostgres?tab=readme-ov-file#connecting-to-a-specific-postgres-instance

library(DBI)
# Connect to a specific postgres database i.e. Heroku
con <- dbConnect(RPostgres::Postgres(),dbname = 'DATABASE_NAME', 
                 host = 'HOST', # i.e. 'ec2-54-83-201-96.compute-1.amazonaws.com'
                 port = 5432, # or any other port specified by your DBA
                 user = 'USERNAME',
                 password = 'PASSWORD')

When I adjust the credentials for a pgvecto.rs-instance the process times out, but no connection is set up.

One reason, why I'm interested in this connection is this kind of functionality: https://dbplyr.tidyverse.org/articles/dbplyr.html

@cutecutecat cutecutecat self-assigned this Dec 17, 2024
@henningsway
Copy link
Author

Apparently (thanks!) the ssl should be required as explained in https://stackoverflow.com/a/60282693

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants