Selecto.Builder.Sql (Selecto v0.3.12)

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, pivot 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.

Link to this section Summary

Link to this section Functions

Link to this function

build(selecto, opts)

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