mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-21 13:52:30 +02:00
WIP: add sqlite search backend boilerplate
This commit is contained in:
15
archivebox/search/backends/sqlite.py
Normal file
15
archivebox/search/backends/sqlite.py
Normal file
@@ -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
|
Reference in New Issue
Block a user