# Filtering

Build complex queries with type-safe filters.

## Basic Filters

## String Filters

## Combining Filters

## Relation Filters

## Compile-Time Macros

~7ns

For maximum performance, use compile-time filter macros that achieve near-zero overhead:

## Typed Filters (DirectSql)

~1.7ns

For ultimate performance, use typed filters with the DirectSql trait for zero-allocation SQL generation: