Selecto.Builder.Sql (Selecto v0.4.5)

Copy Markdown

Main SQL compilation entry point for a configured Selecto query.

This module orchestrates the full query pipeline by composing SELECT, FROM, JOIN, WHERE, GROUP BY, ORDER BY, LIMIT/OFFSET, and optional advanced features such as CTEs, retarget queries, set operations, lateral joins, and UNNEST clauses.

The public build/2 function returns {sql, aliases, params} where sql is the finalized query string and params is the ordered bind parameter list.

Summary

Functions

build(selecto, opts)

@spec build(Selecto.Types.t(), Selecto.Types.sql_generation_options()) ::
  {String.t(), [%{required(String.t()) => String.t()}], [any()]}