Skip to content

Add OR support for OData filters#61

Merged
wilsonfreitas merged 1 commit into
mainfrom
issue-11-odata-or-filter
Jun 14, 2026
Merged

Add OR support for OData filters#61
wilsonfreitas merged 1 commit into
mainfrom
issue-11-odata-or-filter

Conversation

@wilsonfreitas

Copy link
Copy Markdown
Owner

Summary

  • Add composable OData filter expressions with | for OR and & for explicit AND.
  • Keep existing multiple-filter behavior as implicit AND.
  • Raise a clear TypeError when filters are used in Python boolean context, so native and/or does not silently produce the wrong query.
  • Document OR usage in OData docs.

Fixes #11

Verification

  • uv run pytest tests/test_odata.py tests/test_async.py
  • uv run ruff check bcb/ tests/
  • uv run ruff format --check bcb/ tests/
  • uv run mypy bcb/
  • uv run pytest -m "not integration"
  • uv run --group docs sphinx-build -b html docs docs/_build/html
  • uv run pytest -m integration
  • git diff --check

@wilsonfreitas wilsonfreitas merged commit 06d97bc into main Jun 14, 2026
9 checks passed
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.

Criar operador or para a consulta

1 participant