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

improvement: show engine's tables in the datasources panel #3665

Merged
merged 3 commits into from
Feb 3, 2025

Conversation

mscolnick
Copy link
Contributor

@mscolnick mscolnick commented Feb 3, 2025

This adds the SQLEngine's tables in the datasources panel. Also adds some icons/pretty displays (which we can later re-use in the dropdown).

The engine variable name is clickable to jump to its definition in the notebook

Screenshot 2025-02-02 at 10 37 17 PM

Copy link

vercel bot commented Feb 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 7:15pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 7:15pm


@property
def source(self) -> str:
return "sqlalchemy"
return str(self._engine.dialect.name)
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea this helps with a better name / icon in the frontend. if the naming is confusing, we could not call is source (although i don't think the source is "sqlalchemy" either)

Copy link
Collaborator

Choose a reason for hiding this comment

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

gotcha, its fine then. the test needs to be fixed but yea.

Light2Dark
Light2Dark previously approved these changes Feb 3, 2025
akshayka
akshayka previously approved these changes Feb 3, 2025
Copy link

github-actions bot commented Feb 3, 2025

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.10.20-dev25

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.

3 participants