Вложения к записям, профилировщик запросов, приём вебхуков по токену
This commit is contained in:
1 parent
a75f27f3ed
commit
e42404ebe0
33 files changed
+1494
-124
No files matched your search
@@ -9,6 +9,7 @@ use PDOException;
|
||||
use PDOStatement;
|
||||
use Rsgrinko\Proton\Database\Query\Builder;
|
||||
use Rsgrinko\Proton\Support\Config;
|
||||
use Rsgrinko\Proton\Support\Profiler;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
@@ -522,8 +523,14 @@ final class Connection
|
||||
$statement->bindValue($name, is_bool($value) ? (int) $value : $value, $type);
|
||||
}
|
||||
|
||||
$started = microtime(true);
|
||||
|
||||
$statement->execute();
|
||||
|
||||
// Замер уходит профилировщику: он решит, писать ли медленный запрос
|
||||
// в лог и собирать ли полную картину для панели отладки
|
||||
Profiler::query($sql, (microtime(true) - $started) * 1000, $statement->rowCount());
|
||||
|
||||
return $statement;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user