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

fix: default to opt-in for introspection of tables #3940

Merged
merged 7 commits into from
Mar 1, 2025

Conversation

Light2Dark
Copy link
Collaborator

@Light2Dark Light2Dark commented Feb 28, 2025

📝 Summary

Not sure what you think about this, but this may be a temporary solution for the issue here: https://discord.com/channels/1059888774789730424/1338959377411084390/1344967482577915905.

By default, we do not introspect tables, we let users opt-in by changing config.

🔍 Description of Changes

For future MRs:

  • remove introspection for meta schemas, make this a config. information_schema does not need to be introspected I think.. (if we load on-demand, we do not need to do this)
  • possible to request in the background(?) or same as table details preview, request on-demand.

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

📜 Reviewers

@akshayka OR @mscolnick

Sorry, something went wrong.

Unverified

This user has not yet uploaded their public signing key.
Copy link

vercel bot commented Feb 28, 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 28, 2025 11:41pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 11:41pm

@Light2Dark Light2Dark changed the title fix: allow opt-in for introspection of tables fix: default to opt-in for introspection of tables Feb 28, 2025
@@ -187,6 +187,17 @@ marimo will automatically discover the database connection and display the datab
</figure>
</div>

!!! note

marimo currently supports auto-discovery up to the schema level. If you want to discover tables and columns, you can enable it in your `.marimo.toml` file. Note that auto-discovery can be slow for large databases.
Copy link
Contributor

Choose a reason for hiding this comment

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

since it might be on a notebook-by-notebook basic, maybe we suggest pyproject.toml since we not support that?

and would be:

    ```toml title="pyrpoject.toml"
    [tool.marimo.datasources]

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks for the suggestions, sry I missed this.

Copy link
Contributor

@mscolnick mscolnick left a comment

Choose a reason for hiding this comment

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

I think configuration is good.

Maybe it should be "auto_include_" so that in future we can still include them on demand when they expand in the front end.

@akshayka akshayka merged commit f020fe5 into marimo-team:main Mar 1, 2025
34 checks passed
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.

None yet

3 participants