add full text search to db

This commit is contained in:
Joe Ardent 2024-02-02 21:47:50 -08:00
parent a680d01d7f
commit 24c67bc529
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,2 @@
drop table if exists star_search;
drop table if exists watch_search;

View file

@ -0,0 +1,5 @@
create virtual table if not exists star_search using fts5(name, id);
insert into star_search(name, id) select name, id from stars;
create virtual table if not exists watch_search using fts5(title, id);
insert into watch_search(title, id) select title, id from watches;