ankane / ruby-polars

Blazingly fast DataFrames for Ruby
MIT License
781 stars 29 forks source link

Add `read_database_uri(...)` function binding #70

Open DeflateAwning opened 1 month ago

DeflateAwning commented 1 month ago

Would be awesome to be able to use Polars.read_database_uri(...) to read directly from a database URI.

Reasoning

  1. Compliance with the full API
  2. Good for quick hacking, testing against a temporary database, etc.
  3. Benchmarking the speed of the Rust connectorx driver, vs. the Ruby driver, especially for very large queries.

Notes

Python docs: https://docs.pola.rs/py-polars/html/reference/api/polars.read_database_uri.html#polars.read_database_uri

DeflateAwning commented 1 month ago

I think this is a fairly straight-forward binding. Would you be able to take a quick look at it? :)