From c53ec45a296b264ca4d0a1301f33b580e88b4c3f Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Sun, 8 Oct 2023 15:01:59 -0400 Subject: [PATCH] WIP: add sqlite search backend boilerplate --- archivebox/search/backends/sqlite.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 archivebox/search/backends/sqlite.py diff --git a/archivebox/search/backends/sqlite.py b/archivebox/search/backends/sqlite.py new file mode 100644 index 00000000..622673b7 --- /dev/null +++ b/archivebox/search/backends/sqlite.py @@ -0,0 +1,15 @@ +from typing import List, Generator + +from archivebox.util import enforce_types + +@enforce_types +def index(snapshot_id: str, texts: List[str]): + pass + +@enforce_types +def search(text: str) -> List[str]: + pass + +@enforce_types +def flush(snapshot_ids: Generator[str, None, None]): + pass