[Digikam-devel] How to access the database from a script

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] How to access the database from a script

Pavol Murin
Hello dear Digikam developers,

 I wrote a parser for Apple's XML files recently to import my iTunes
library to Amarok. After I was finished, I had a look at my
depressingly empty Digikam library and decided to give it a try. I
have all my photos in a iPhoto library which I would like to import to
Digikam. If there is something done already, I can save the unnecesary
work. As I didn't find anything, I assume noone has done this yet.

 Sorry for the long introduction, now for the real question:

 I would like to "apply" the data read from the iPhoto to Digikam. How
can I do this best? I have a list of filenames and albums, so one way
is to create the directories from albums and copy them to the Digikam
photos directory. While possible, that is only part of the imported
data. To import tags and other info, I would like to access the
Digikam database and make changes directly there.

 So, is it possible to access the database directly? I would like to
use DCOP for it - I would like to apply the data to Digikam, not to
SQLite. In amarok, there is a DCOP function "query" where you can use
a sql query as parameter. That makes changing the database very easy.
Is there something simillar in Digikam?

 I would like to send queries to digikam, rather than SQLite, as if
the database engine changes, the script stop working.

 Thank you for any hints,

 Regards, muro
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Digikam-devel] How to access the database from a script

Bugzilla from mikmach@wp.pl
Dnia wtorek, 5 września 2006 11:48, Pavol Murin napisał:
>  So, is it possible to access the database directly? I would like to
> use DCOP for it - I would like to apply the data to Digikam, not to
> SQLite. In amarok, there is a DCOP function "query" where you can use
> a sql query as parameter. That makes changing the database very easy.
> Is there something simillar in Digikam?
>
>  I would like to send queries to digikam, rather than SQLite, as if
> the database engine changes, the script stop working.

DCOP interface is rather limited. The only solution is to use sqlite3
command line utility. To inspect database you can use GUI in form of
sqlitebrowser.

m.

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Digikam-devel] How to access the database from a script

Gilles Caulier-2
In reply to this post by Pavol Murin
Le Mardi 5 Septembre 2006 11:48, Pavol Murin a écrit :

> Hello dear Digikam developers,
>
>  I wrote a parser for Apple's XML files recently to import my iTunes
> library to Amarok. After I was finished, I had a look at my
> depressingly empty Digikam library and decided to give it a try. I
> have all my photos in a iPhoto library which I would like to import to
> Digikam. If there is something done already, I can save the unnecesary
> work. As I didn't find anything, I assume noone has done this yet.
>
>  Sorry for the long introduction, now for the real question:
>
>  I would like to "apply" the data read from the iPhoto to Digikam. How
> can I do this best? I have a list of filenames and albums, so one way
> is to create the directories from albums and copy them to the Digikam
> photos directory. While possible, that is only part of the imported
> data. To import tags and other info, I would like to access the
> Digikam database and make changes directly there.
>
>  So, is it possible to access the database directly? I would like to
> use DCOP for it - I would like to apply the data to Digikam, not to
> SQLite. In amarok, there is a DCOP function "query" where you can use
> a sql query as parameter. That makes changing the database very easy.
> Is there something simillar in Digikam?
>
>  I would like to send queries to digikam, rather than SQLite, as if
> the database engine changes, the script stop working.
>
>  Thank you for any hints,
>
>  Regards, muro

Pavol,

look like there is a file in B.K.O about to import iphoto database in
digiKam :

http://bugs.kde.org/show_bug.cgi?id=132353

Gilles
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel