-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
integration with mysqli #326
Comments
Are you sure you are calling |
Hello, I have a legacy project (PHP 5) that uses Kohana v2 and would like to know how can I log the SQL? Could help? Thanks |
i also have custom php framework which is made by procedural php mainly. I added PHP DebugBar, except database it works. For Database tab, I did custom mysqli collector, although it does not procude error, it does not work. Can you make an official example for mysqli integration @maximebf ? I have tried to catch queries with "$this->mysqli->query("SHOW FULL PROCESSLIST");" |
@ihlassovbetov hi, share your progress and maybe we can review why it is not working for you, an official PR could be made Also, ideas |
i am using mysqli not pdo, how to integrate this with mysqli?
i am saving queries in function
function dbquery($sql) {
return $result;
}
and added a mysql collector
call collector using
but it doesnt includes ajax queries. for ajax requests i set
$debugbar->sendDataInHeaders(true);
but it doesnt works
collector
namespace DebugBar\Bridge;
use DebugBar\DataCollector\AssetProvider;
use DebugBar\DataCollector\DataCollector;
use DebugBar\DataCollector\Renderable;
use DebugBar\DebugBarException;
class mysqlCollector extends DataCollector implements Renderable, AssetProvider
{
protected $mysql_queries;
}
The text was updated successfully, but these errors were encountered: