Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 752 Bytes

File metadata and controls

31 lines (21 loc) · 752 Bytes

Builders

Builders collect query intent and either:

  • expose it with .build()
  • convert it to SQL with .query()
  • execute it when awaited, if they were created by an Engine

Schema builders

Query builders

Common behavior

Most builders share these patterns:

Method Description
build() Returns a plain object representation of the builder state.
query(dialect?) Returns SQL for the provided or engine dialect.
then(...) Makes the builder awaitable when an engine is attached.

The exact shape of build() and query() depends on the builder.