Skip to content

Conversation

@0xRobin
Copy link
Contributor

@0xRobin 0xRobin commented Nov 4, 2025

  • Implemented execute_sql method in ExecutionAPI to allow direct SQL execution via the API.
  • Updated ExtendedAPI to utilize the new SQL execution method for running queries.
  • Added list_tables method in TableAPI to retrieve a paginated list of tables.
  • Introduced UsageResponse, TableInfo, and ListTablesResponse models for handling API responses.
  • Enhanced unit tests to cover new features and response parsing for usage and table information.

Note

Add support for executing raw SQL via /sql/execute, listing uploaded tables, and fetching usage data, with corresponding models and tests.

  • API:
    • Execution: Add ExecutionAPI.execute_sql to run arbitrary SQL via /sql/execute.
    • Extensions: Update ExtendedAPI.run_sql to use direct SQL execution with polling and result fetch.
    • Tables: Add TableAPI.list_tables(limit, offset) to fetch paginated table listings.
    • Usage: New UsageAPI.get_usage(start_date, end_date) and include UsageAPI in ExtendedAPI mixin.
  • Models:
    • Add UsageResponse, TableInfo, and ListTablesResponse with from_dict constructors.
  • Tests:
    • E2E: Add test_run_sql; add skipped tests for get_usage and list_tables.
    • Unit: Add parsing tests for UsageResponse, TableInfo, and ListTablesResponse.

Written by Cursor Bugbot for commit 427c5ba. Configure here.

- Implemented `execute_sql` method in `ExecutionAPI` to allow direct SQL execution via the API.
- Updated `ExtendedAPI` to utilize the new SQL execution method for running queries.
- Added `list_tables` method in `TableAPI` to retrieve a paginated list of tables.
- Introduced `UsageResponse`, `TableInfo`, and `ListTablesResponse` models for handling API responses.
- Enhanced unit tests to cover new features and response parsing for usage and table information.
@0xRobin 0xRobin requested a review from ivpusic November 4, 2025 21:40
@0xRobin 0xRobin merged commit 95a33a7 into main Nov 5, 2025
2 checks passed
@0xRobin 0xRobin deleted the 2025-11-04-de98-aec20 branch November 5, 2025 07:02
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