- 
                Notifications
    You must be signed in to change notification settings 
- Fork 748
add datasource tool #6422
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
add datasource tool #6422
Conversation
| The latest updates on your projects. Learn more about Vercel for GitHub. 
 | 
|  | ||
| @dataclass | ||
| class GetDatabaseTablesOutput(SuccessResult): | ||
| tables: list[TableDetails] = field(default_factory=list) | 
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 wonder if it would help to add an example sql: e.g. _df = mo.sql("SELECT * FROM database.schema.table LIMIT 100" in the response
| ) | ||
| ) | ||
|  | ||
| return GetDatabaseTablesOutput(tables=tables) | 
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.
do we need to prevent duplicates?
📝 Summary
Fetches tables (with schema, database and connection fields) in a database.
Supports regex queries.
🔍 Description of Changes
📋 Checklist