xb

Dialect vs Custom Design (English)

English version of xb/doc/DIALECT_CUSTOM_DESIGN.md. It compares traditional ORM dialect switches with xb’s Custom architecture.


Dialect model (legacy ORMs)


Custom model (xb)


When to choose each

Scenario Recommended model
Commodity SQL with standard syntax Built-in SQL generator
Specialized engines (ClickHouse, Qdrant) Custom
Proprietary internal APIs Custom
Need instant experimentation Custom

Guidance for adapter authors

  1. Provide typed builders/configs.
  2. Document limitations (unsupported clauses, max vectors, etc.).
  3. Keep tests close to the adapter.
  4. Follow semantic versioning when exposing APIs to other teams.

See doc/en/CUSTOM_INTERFACE_PHILOSOPHY.md for the underlying design motivations.