Update 2021-03-11: added version by Pat Jones for RM8.
This page brings together a set of scripts that:
- adds ‘friendly’ Waymarks in views of each database table to aid in navigating through RootsMagic to the responsible screen and to help understand the role of each table
- builds a Full Text Search table, first described on the page Search – Find Almost Everywhere
- launches a Full Text Search with results combining the ‘friendly’ Waymarks and a SQLite statement that opens the table row with the matching cell for possible editing
Sample of WitnessWay, the temporary view of the WitnessTable with Waymarks added to facilitate navigation to the sharee in RootsMagic. |
Each RootsMagic table is replicated in a temporary View named the same except ending with “Way” instead of “Table”. Hence, “WitnessWay” is the wayfinding view of “WitnessTable”. To the right, in this screenshot snippet of the SQLite Expert sidebar, we see:
The Full Text Search query returns:
This query can be copied to the SQL editor and executed; then the SQLite Expert editing tool can be used to edit these fields and others in the database table it opens. |
|
Sample result from the Full Text Search on the term “clerk”. |
Waymarks for result #3 in the search were followed to this screen snip from the RootsMagic Place List. |
Hopefully, the Waymarks list is self-explanatory and can be easily followed through RootsMagic. Editing the database is more safely done in RootsMagic but there are circumstances which can only be addressed through SQLite or the user may prefer doing through SQLite. You are reading this because there is something you want to do with your RootsMagic database that you cannot do with RootsMagic itself!
Note and other fields designed for large amounts of text are stored as binary BLOBs and are so indicated by the … icon. The SQLite Expert text editor works with them, too. |
The Post Edit button is key to affecting the database. |
If you do want to edit your RootsMagic database with SQLite Expert, please read its Help pages under the topics:
- Editing table data
- Editing live queries
Always run the SQLite Database Tools before and after you make changes externally and make a backup before, too.
While there are several ways to start an edit, making the changes stick in the database requires a click of the Post edit button, enabled when a change has been made to an onscreen field.
Downloads
Script | History | SQLite Requirements | |
1a | RM8_WaymarksViews.sql Creates the Wayfinding views of the RM8 database tables | 2021-03-11 added by Pat Jones for #RM8 | RMNOCASE |
1b | RM7_5_WaymarksViews.sql Creates the Wayfinding views of the RM7.5 database tables. | 2017-07-01 extended for RM7.5 and corrected bug for null spouse 2019-02-12 corrected omission of famiies from EventWay and dependent views | RMNOCASE |
2 | FindAlmostEverywhere-Build_FTS_table.sql Creates the FTS4 virtual table xFTStable for full-text searches. | RMNOCASE, FTS4 | |
3 | FindAlmostEverywhere-Snippet_Waymarks_LocateQuery.sql Stores user inputted search terms in xSearchTerm, searches xFTStable and returns snippets, Waymarks, field names and the SQL queries to examine the matching records. | RMNOCASE, FTS4, runtime-parameters SQLite Expert Personal qualifies |
Usage
Script #3 is dependent on the execution of both #1 and #2 preceding its running. #1 and #2 are independent of any other script.
On very large databases, scripts 2 and 3 may consume tens of seconds. In one example 40 and 30 seconds, respectively. However, RootsMagic’s Find EveryWhere took over 180 seconds for the same search and does so for each new search. Script 2 need not be re-executed for each new search by script 3 so there is a distinct time advantage.
All the views and tables created by these scripts are temporary, in-memory and are destroyed when the SQLite manager is closed.
RM7_5_WaymarksViews.sql no longer omits family events from EventWay and dependent views.