mysql.sql

mysql.sql

mysql.sql

Function

Returns the debug text of the current SQL.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
render_bindsBoolNotrueWhether to render bind parameters into SQL text.

Return value

TypeDescription
StringReturns the SQL preview string.

Example

Notes

  • sql(false) returns raw SQL.
  • Question marks in SQL string literals are not replaced.