Skip to content

docs: document sqlx test connection limits#4278

Open
angelnereira wants to merge 1 commit into
launchbadge:mainfrom
angelnereira:docs/sqlx-test-concurrency
Open

docs: document sqlx test connection limits#4278
angelnereira wants to merge 1 commit into
launchbadge:mainfrom
angelnereira:docs/sqlx-test-concurrency

Conversation

@angelnereira
Copy link
Copy Markdown

Summary

  • document how #[sqlx::test] interacts with database connection limits when many tests run concurrently
  • show how to use the PoolOptions test signature to reduce the per-test pool size
  • mention cargo test -- --test-threads <N> as a way to limit Rust test runner concurrency

This is related to #2567.

Checks

  • cargo fmt
  • cargo test -p sqlx --doc --no-default-features --features postgres,macros,migrate,runtime-tokio
  • cargo check -p sqlx --no-default-features --features postgres,macros,migrate,runtime-tokio
  • git diff --check

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.

1 participant