Changes

Jump to: navigation, search

Addon:SQLite Export Import

697 bytes added, 20:43, 7 December 2022
m
how to expand indexed data.
{{man note|NOTE|You should only attempt editing textual fields or fields for which you know the meaning. For example, in the above, do not change the handle fields, but you can change one's gender.}}
 
==Indexed data==
A user reported that their experiments with the SQLite export created records of Events where the Event type is a numeric index. There was no text label of the Event type. They were unable to find the table being referenced.
 
The events type are referenced in [https://github.com/gramps-project/gramps/blob/18da49cd75202480d956acec7c7d3069f3c98e63/gramps/gen/lib/eventtype.py#L87 <code>gramps/gen/lib/eventtype.py</code>]
 
The following code will get the string value corresponding to the index:
 
event_type = [tup for tup in EventType._DATAMAP
if tup[0] == index][0]
evt_id = event_type[0]
evt_name = event_type[1]
== See also ==
4,608
edits

Navigation menu