compile method

MssqlStatement compile({
  1. MssqlDialect? dialect,
})

The SQL and parameters this query would run, without running it.

The inspection hook the API contract names: sql plus typed parameters, never SQL with values pasted into it. dialect defaults to the compile-time default rather than asking the server, because this method is synchronous; pass one explicitly to see what a particular target would receive.

Includes are not part of it. They are separate statements run after the parent rows arrive, so there is no single statement to show.

Implementation

MssqlStatement compile({MssqlDialect? dialect}) =>
    _select().compile(dialect: dialect ?? this.dialect);