-
Notifications
You must be signed in to change notification settings - Fork 448
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
docs/guides/working_with_data/sql.md
Outdated
@@ -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. |
There was a problem hiding this comment.
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]
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
📝 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.(if we load on-demand, we do not need to do this)information_schema
does not need to be introspected I think..📋 Checklist
📜 Reviewers
@akshayka OR @mscolnick