Skip to content

Conversation

@rolandwalker
Copy link
Contributor

@rolandwalker rolandwalker commented Jan 21, 2026

Description

The --throttle option adds a pause between queries in batch mode, which can be useful for long or intensive scripts.

Technically we pause between each line of input, which is usually equivalent to one query.

To reduce conflicts, this branch is based off of #1450 , and will need to be rebased once that is merged. There's no need to review until that is done. Rebased.

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

@rolandwalker rolandwalker self-assigned this Jan 21, 2026
rather than reading the entire script into memory.

 * Stream STDIN input, running queries a line at a time.
 * Remove MemoryError check, and recommendation for the vendor client.
 * Use CSV/TSV formats with headers for the first line only.
 * Exit with an error code if we are unable to open /dev/tty.
 * Add --noninteractive flag to suppress the destructive-warning prompt
   from the CLI.
 * Add --format= option to control output formats, leaving the default
   format as "extra headers pseudo TSV".
 * Commentary on edge cases and followups.
The --throttle option adds a pause between queries in batch mode, which
can be useful for long or intensive scripts.

Technically we pause between each line of input, which is usually
equivalent to one query.
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.

2 participants