Adding key to Gramps database metadata table

Hi,

while developing the Gramps Web API sync addon and trying to solve an issue, I was wondering whether it would be considered acceptable for a Gramps addon to add a key to the metadata table in a Gramps database. This would allow me to store the last successful sync timestamp, making detecting simultaneous changes much easier without resorting to ugly hacks. However, the addon would have to call the private method db._set_metadata on the DBAPI instance. Would that be considered an acceptable thing to do? (Specifically, would it not be considered bad enough to block merging into addons-source?)

You could save it in the plugin ini file. Iā€™m doing that for database specific options in the view I have been playing with.

It would be useful if there was a simple database table with id/key/value columns any plugin could use to store state specific to that database and that would be included in Gramps XML exports and imports.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.