Skip to content

Instantly share code, notes, and snippets.

@gyakkun
Created September 14, 2023 13:14
Show Gist options
  • Save gyakkun/4983db232983063e92c910b59c48a8f2 to your computer and use it in GitHub Desktop.
Save gyakkun/4983db232983063e92c910b59c48a8f2 to your computer and use it in GitHub Desktop.
htu_trigram.sql
begin;
create virtual table if not exists search_urls using fts5
(
url,
title,
tokenize = 'trigram'
);
alter table search_urls rename to search_urls_bak;
create virtual table search_urls using fts5
(
url,
title,
tokenize = 'trigram'
);
insert into search_urls select url,title from search_urls_bak;
drop table search_urls_bak;
commit;
vacuum;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment