Events::
trigger('DBQuery',
$query);
return false;
} $query->
setDuration($startTime);
// Let others do something with this query
Events::
trigger('DBQuery',
$query);
// resultID is not false, so it must be successful
if ($this->
isWriteType($sql)) { return true;
} // query is not write-type, so it must be read-type query; return QueryResult
$resultClass =
str_replace('Connection', 'Result',
static::
class);
return new $resultClass($this->connID,
$this->resultID
);
} /**
* Performs a basic query against the database. No binding or caching
* is performed, nor are transactions handled. Simply takes a raw
* query string and returns the database-specific result id.
*
* @return false|object|resource
* @phpstan-return false|TResult
*/