Skip to content

[DT-2731] Enables pagination support#4

Merged
ntoro-healx merged 1 commit into
mainfrom
DT-2731-support-pagination
May 28, 2026
Merged

[DT-2731] Enables pagination support#4
ntoro-healx merged 1 commit into
mainfrom
DT-2731-support-pagination

Conversation

@ntoro-healx
Copy link
Copy Markdown

@ntoro-healx ntoro-healx commented Apr 29, 2026

This pull request introduces support for SQL OFFSET in the SQLAlchemy integration, allowing for more flexible pagination and query slicing. It also adds a new documentation file, CLAUDE.md, which provides guidance for contributors and an overview of the repository's architecture and usage patterns.

SQLAlchemy Integration Enhancements:

  • Added support for the offset parameter in SQL queries, including:
    • Added an offset argument to the _SqlQuery class and all relevant methods (e.g., limit, order_by, group_by, where, index_by) to propagate the offset value through query construction. [1] [2] [3] [4] [5] [6] [7]
    • Implemented an offset method on _SqlQuery to allow chaining and setting the offset value.
    • Updated resolve_sql_query to accept and apply the offset value when building SQLAlchemy queries. [1] [2] [3] [4]

Documentation Improvements:

  • Added CLAUDE.md to provide setup instructions, development commands, an architecture overview, module structure, and key usage patterns for contributors and Claude Code.

These changes improve the flexibility and usability of the SQLAlchemy integration and make the repository more accessible to new contributors.

Add offset() method to _SqlQuery for skip-based pagination. The offset
is preserved through query chaining (where, order_by, limit, group_by,
index_by) and works with joins.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ntoro-healx ntoro-healx requested a review from Copilot May 27, 2026 15:58
@ntoro-healx ntoro-healx marked this pull request as ready for review May 27, 2026 15:58

This comment was marked as outdated.

@ntoro-healx ntoro-healx changed the base branch from master to main May 27, 2026 16:17
@ntoro-healx ntoro-healx requested a review from Copilot May 27, 2026 16:19
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Copy link
Copy Markdown
Member

@alexhermida alexhermida left a comment

Choose a reason for hiding this comment

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

Looks great and simple! nothing to say

@ntoro-healx ntoro-healx merged commit 2ce4942 into main May 28, 2026
2 checks passed
@ntoro-healx ntoro-healx deleted the DT-2731-support-pagination branch May 28, 2026 11:17
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