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 まで取得されるような逆走査のオプションが欲しい。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions