Re: [sqlite] Logging sqlite executed/bound SQL statements

2019-02-13 Thread Marek Sebera
What I did the shim for, was Linux system (x86/x86-64) and libsqlite3.so.0 version 3.26/3.27 Not logging API calls, but logging executed SQL statements (something mysql/maria/postgre/oracle/... provide in form of query-log) My main interest was to inspect SQL statements executed by 3rd party

Re: [sqlite] Logging sqlite executed/bound SQL statements

2019-02-13 Thread Warren Young
On Feb 13, 2019, at 2:10 PM, Marek Sebera wrote: > > re-compiling system provided library is not an option What version and system are we talking about? It matters greatly. If we’re talking about the epochal 3.7.x series, the answers are very different than if we’re talking about a version s

[sqlite] Logging sqlite executed/bound SQL statements

2019-02-13 Thread Marek Sebera
Hello, is there any better way, if re-compiling system provided library is not an option, to log sqlite commands, than using something similar to this LD_PRELOAD shim? https://github.com/smarek/sqlite3-preload I've read https://www.sqlite.org/debugging.html Apart from compile-time debug option