Return generated SQL for entire query or specific method
Available since version 3.0.157.
Usage
// basic usage
$string = $databaseQuery->getSQL();
// usage with all arguments
$string = $databaseQuery->getSQL(string $method = '');
Arguments
Name | Type(s) | Description |
---|---|---|
method (optional) | string | Optionally specify method name to get SQL for |
Return value
string
DatabaseQuery methods and properties
API reference based on ProcessWire core version 3.0.236