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

First attempt at genericizing data source #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jcheng5
Copy link
Collaborator

@jcheng5 jcheng5 commented Apr 4, 2025

This PR is intended to make querychat extensible beyond in-memory Pandas dataframes, including but not limited to:

  1. SQLite
  2. PostgreSQL
  3. Snowflake
  4. Databricks
  5. Redshift?
  6. Bigquery?

It introduces a protocol called DataSource, which so far has two concrete implementations: DataFrameSource and SQLiteSource.

TODO

  • Use narwhals instead of Pandas directly
  • Have options to limit the number of rows retrieved, or perhaps retrieve in chunks or a cursor, so big databases won't blow up your Shiny app
  • PostgreSQL
  • Snowflake
  • Databricks

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

Successfully merging this pull request may close these issues.

1 participant