[Digikam-users] sql queries digikam

Gilles Caulier caulier.gilles at gmail.com
Mon Jul 2 14:29:35 BST 2007


2007/7/2, Arnd Baecker <arnd.baecker at web.de>:
>
>
>
> On Mon, 2 Jul 2007, depot @ xs4all. nl wrote:
>
> > Hi Arnd,
> >
> > Thanks for your response. But it's not quite what I am looking for.
> >
> > The queries (user searches) stored by digikam in the digikam3.db are in
> the format used by digikam.
> > Eg 'digikamsearch:1%20AND%202?1.key=imagename&1.op=LIKE&1
> >
> .val=20&2.key=imagedate&2.op=LT&2.val=2007-07-02&count=2&name=testsearch');
> > These are not sql queries.
> >
> > I am looking for the sql queries that digikam generates to access the
> digikam3.db internally
> > when a  user performs a search.
>
> Alright, next try (need not be better ;-):
>
> Can you compile from source?
> If so you could just add in digikamsearch.cpp
>   kdWarning() << "QUERY" << sqlQuery << endl;


to prevent problem with multithreading in digiKam, do not use KDE API
directly, but "DWarning()" instaead "kdWarning()"

unforget to put #include"ddebug.h" at top of source to compile fine.

Gilles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20070702/f9beeae0/attachment.html>


More information about the Digikam-users mailing list