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

duckdb connections support for R #23

Open
sounkou-bioinfo opened this issue Aug 14, 2024 · 12 comments
Open

duckdb connections support for R #23

sounkou-bioinfo opened this issue Aug 14, 2024 · 12 comments
Labels
enhancement New feature or request

Comments

@sounkou-bioinfo
Copy link

Hi,
Thank you for this great package.

I want to ask if there were plans to support duckdb connection for the R version of the package or how one could implement this

Thank you

@bruceyyu
Copy link
Collaborator

@sounkou-bioinfo I definitely support your proposal!
However, the workload to integrate duckdb will be large, so it is my next milestone for the package, which may take months.

Meanwhile, I recommend you to check out the sibling of GWalker, PyGWalker, if you use Python, as it already supports duckdb computation and it is much more developed.

Regarding how developers could implement customized features for the package, I will write some instructions in the docs soon. Stay tuned! ☺️

@sounkou-bioinfo
Copy link
Author

@bruceyyu
Great, will be looking forward forward to the developers guide
thanks !

@bruceyyu
Copy link
Collaborator

@sounkou-bioinfo We just had a pre-release version for GWalkR with the computation powered by DuckDB! Check it out v0.2.0-alpha and welcome to give it a shot!

@sounkou-bioinfo
Copy link
Author

@bruceyyu great !
i will test this right away and let you know !

@BorgeJorge
Copy link

Question: If I'm understanding, GWalkR's duckdb integration means GWalkR can now use duckdb for internal operations. I have some large duckdb tables that I'd like to visualize. Is there a way to read a duckdb table directly into GWalkR without having to first convert the table to a dataframe?

@bruceyyu
Copy link
Collaborator

Question: If I'm understanding, GWalkR's duckdb integration means GWalkR can now use duckdb for internal operations. I have some large duckdb tables that I'd like to visualize. Is there a way to read a duckdb table directly into GWalkR without having to first convert the table to a dataframe?

@BorgeJorge Currently no, but this is a good point and I've marked it on my todo list

@bruceyyu bruceyyu added the enhancement New feature or request label Oct 18, 2024
@gregvolny
Copy link

Can you also give us access to PostgreSQL : https://github.com/electric-sql/pglite for the same reason @bruceyyu mentioned?

@bruceyyu
Copy link
Collaborator

Can you also give us access to PostgreSQL : https://github.com/electric-sql/pglite for the same reason @bruceyyu mentioned?

@gregvolny I'm not so sure about your use case. Do you have a local instance of PostgreSQL to connect?

@gregvolny
Copy link

gregvolny commented Oct 18, 2024

I'm not so sure about your use case. Do you have a local instance of PostgreSQL to connect?

@bruceyyu , https://github.com/electric-sql/pglite create a persistent or in memory local instance of PostgreSQL in the browser virtual file system. This local instance can synchronize data to remote PG servers using https://pglite.dev/docs/sync. One of the most important features that can be implemented in Gwalker is a direct access to data source from remote relational database server.

@bruceyyu
Copy link
Collaborator

@gregvolny
R supports connecting to a remote database using odbc and I guess you want GWalkR to support visualization of a table stored in a remote database?
I will try to support this feature in the next version!

@BorgeJorge
Copy link

DuckDB's PostgreSQL extension allows DuckDB to read/write to/from a PostgreSQL database, and the httpfs extension allows for reading/writing to/from remote http and S3 files, so if you do end up allowing write access to GWalkR's internal DuckDB database, maybe there's a way to let people also write remote PostgreSQL, http, and S3 files into GWalkR/DuckDB? Just a thought.

@bruceyyu
Copy link
Collaborator

DuckDB's PostgreSQL extension allows DuckDB to read/write to/from a PostgreSQL database, and the httpfs extension allows for reading/writing to/from remote http and S3 files, so if you do end up allowing write access to GWalkR's internal DuckDB database, maybe there's a way to let people also write remote PostgreSQL, http, and S3 files into GWalkR/DuckDB? Just a thought.

Good point. Will look into it definitely

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

No branches or pull requests

4 participants