-
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
How to implement SQL logs in a legacy project #517
Comments
Any help with this issue? 😬 |
The biggest question is which database php backend is used, mysqli, pdo, mysql? |
We use MariaDB |
Here is the MySQL // Set the last query
$this->last_query = $sql; With that, make a query collector, like this: DebugBar/DataCollector/PDO/PDOCollector.php |
Hello, would you know if I could do this to get the SQL queries in a legacy project? or even in pure mysql queries?
Currently Kohana v2 is used and in some controllers it is done:
Database::instance()->query($query);
to get insert, update, select and delete. The project does not use queries via Model.SQL call examples:
or
Could someone guide me how can I implement SQL logs? It would be very important to me.
Thanks
The text was updated successfully, but these errors were encountered: