how to log sql query all that have executed in app

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • flanklin
    Junior Member
    • Oct 2022
    • 19

    how to log sql query all that have executed in app

    I want to see all queries that have executed in application
  • alter
    Member
    • Apr 2018
    • 57

    #2
    Hi, I would like to start with a response that usually that no raw SQL queries are being executed within the app, because ORM should be used to query the DB data -> hence no SQL query is directly used within the app, because ORM handles translation of PHP code to querying the DB data. So my question is, what are you trying to achieve?

    1) Log all raw SQL queries that are used in backend code
    2) Log all ORM calls that are used in backend code

    Comment

    • flanklin
      Junior Member
      • Oct 2022
      • 19

      #3
      Originally posted by alter
      Hi, I would like to start with a response that usually that no raw SQL queries are being executed within the app, because ORM should be used to query the DB data -> hence no SQL query is directly used within the app, because ORM handles translation of PHP code to querying the DB data. So my question is, what are you trying to achieve?

      1) Log all raw SQL queries that are used in backend code
      2) Log all ORM calls that are used in backend code
      Thank Alter for your answer.

      I am trying to achieve "All ORM Calls"

      Comment

      Working...