You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we should allow users to specify an array of tags in the TOML that can be used for searching.
add new tags table (id, tag)
add new commands_tags table (command_id, tag_id) compound key
add handling of the tags array (if present) to Ingester
tags table should update before command because of triggers on command tables
update the fts tables to have a tags column
update the triggers to have an insert that selects from commands & joins concatenated tags
example SQL (untested of 1 of the 3 triggers)
note that SQLite uses || instead of the traditional CONCAT function and GROUP_CONCAT for concatenating rows
CREATETRIGGERcommands_fts_update AFTER UPDATEON commands
BEGININSERT INTO commands_fts
(commands_fts, rowid, name, description, language, tags)
VALUES ('delete', old.rowid, old.name, old.description, old.language);
INSERT INTO commands_fts
(rowid, name, description, language)
(
SELECT GROUP_CONCAT(tag)
from tags where command_id =old.id
);
END;
The text was updated successfully, but these errors were encountered:
we should allow users to specify an array of
tags
in the TOML that can be used for searching.tags
table (id, tag)commands_tags
table (command_id
,tag_id
) compound keyIngester
tags
columnexample SQL (untested of 1 of the 3 triggers)
note that SQLite uses
||
instead of the traditionalCONCAT
function and GROUP_CONCAT for concatenating rowsThe text was updated successfully, but these errors were encountered: