Foreign key in Sqlite database (digikam4.db)

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

Foreign key in Sqlite database (digikam4.db)

Nikhil Agarwal
Dear Developers

I was inspecting `digikam4.db`, but I could not find foreign key in and of the tables in the Sqlite database (digikam4.db). I was wondering if that's how it was intended?


Thanks ๐Ÿ™‚

Nikhil Agarwal

Reply | Threaded
Open this post in threaded view
|

Re: Foreign key in Sqlite database (digikam4.db)

Maik Qualmann
Yes, that's right, the SQLite DB does not use foreign keys. digiKam's core database schema was created at a time when SQLite did not yet support foreign keys. In the future, if major changes to the database schema are necessary, we will certainly think about using foreign keys as well.

Maik

Am Mi., 3. Mรคrz 2021 um 10:36ย Uhr schrieb Nikhil Agarwal <[hidden email]>:
Dear Developers

I was inspecting `digikam4.db`, but I could not find foreign key in and of the tables in the Sqlite database (digikam4.db). I was wondering if that's how it was intended?


Thanks ๐Ÿ™‚

Nikhil Agarwal