Login  Register

Foreign key in Sqlite database (digikam4.db)

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

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
| More
Print post
Permalink

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