Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

逆走査の対応 #12

Description

@mc-chinju

概要

デフォルトの取得件数 20 件だと仮定する。

# 適当なユーザーデータの作成
100.times do { User.create! }

prev_cursor = User.where(id: 10).cursor.since_cursor
User.cursor(till: prev_cursor)

こうしたときに、id が 100〜81 のレコードが取得されるが、id が 11 〜30 まで取得されるような逆走査のオプションが欲しい。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions