[odb-users] Trace sqlite statements with bound parameters

Adnan RIHAN axel50397 at gmail.com
Thu Nov 13 15:34:50 EST 2014


On 13 novembre 2014 at 15:14:06, Boris Kolpackov (boris at codesynthesis.com(mailto:boris at codesynthesis.com)) wrote:

> http://www.codesynthesis.com/pipermail/odb-users/2013-November/001615.html

I’ve seen this post earlier, but as it concerned an old version, I thought it could have been implemented in libodb-sqlite directly.

Here is my code:
> sqlite3 *handle = this->m_db.dynamicCast<odb::sqlite::database>()->connection()->handle();
> sqlite3_trace(handle, sqlite_tracer::print, 0);

And I have a compilation issue:
> Undefined symbols for architecture x86_64:
>   "_sqlite3_trace", referenced from:
> EntityManager::EntityManager(QSharedPointer<odb::database>, QObject*) in MasterController.o

So I assume that maybe I need to link with sqlite’s lib to work?
If I do, do I need to compile sqlite from sqlite.org then link to an eventual output lib?
--  
Cordialement, Adnan RIHAN.
Directeur-Gérant de Eolis-Software, société de services informatiques.  

GPG: 5675-62BA (https://keybase.io/max13/key.asc)
-> Si vous n'utilisez pas GPG mais souhaitez quand même m’envoyer un e-mail chiffré: (https://encrypt.to/0x567562BA).



More information about the odb-users mailing list