Skip to content

rows --limit 0 exports the entire table #964

Done

Description

@LucioLiu

On the current main branch, an explicit zero row limit exports the entire table. For example, using a fresh database:

sqlite-utils demo.db 'create table items as select 1 as id union all select 2'
sqlite-utils rows demo.db items --limit 0

The second command prints both records. Adding --offset 1 prints the second record. In either case the expected JSON output is [], consistent with running the equivalent SQL with LIMIT 0. This matters when a script calculates the number of records to export.

The CLI tests the truthiness of the limit, so it handles zero like an omitted option.

Activity

  1. linked a pull request that will close this issueRespect --limit 0 in sqlite-utils rows #965on Nov 29, 2026
  2. added a commit that references this issue on Nov 29, 2026
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