SQLite Forum

Trace queries from external application on SQLite file
Login
Having access to the db file would not provide any access to the SQL - queries do not run through the database file. In order to trace the SQL you have to have access to the C API (i.e. you need the app source code or the ability to link against it and get a handle to its `sqlite3` db object) and to configure the connection [using the trace API](https://www.sqlite.org/c3ref/trace_v2.html).