archivebox.plugins_search.sqlite.apps

Module Contents

Classes

SqliteftsConfig

SqliteftsSearchBackend

SqliteftsSearchPlugin

Functions

_escape_sqlite3

_escape_sqlite3_value

_escape_sqlite3_identifier

_create_tables

_handle_query_exception

Data

__package__

SQLITEFTS_CONFIG

SQLITEFTS_SEARCH_BACKEND

PLUGIN

DJANGO_APP

API

archivebox.plugins_search.sqlite.apps.__package__

‘archivebox.plugins_search.sqlite’

class archivebox.plugins_search.sqlite.apps.SqliteftsConfig

Bases: abx.archivebox.base_configset.BaseConfigSet

SQLITEFTS_SEPARATE_DATABASE: bool

‘Field(…)’

SQLITEFTS_TOKENIZERS: str

‘Field(…)’

SQLITEFTS_MAX_LENGTH: int

‘Field(…)’

SQLITEFTS_DB: str

‘Field(…)’

SQLITEFTS_TABLE: str

‘Field(…)’

SQLITEFTS_ID_TABLE: str

‘Field(…)’

SQLITEFTS_COLUMN: str

‘Field(…)’

validate_fts_separate_database()
property get_connection: Callable[[], sqlite3.Connection]
property SQLITE_BIND: str
property SQLITE_LIMIT_LENGTH: int
archivebox.plugins_search.sqlite.apps.SQLITEFTS_CONFIG

‘SqliteftsConfig(…)’

archivebox.plugins_search.sqlite.apps._escape_sqlite3(value: str, *, quote: str, errors='strict') str
archivebox.plugins_search.sqlite.apps._escape_sqlite3_value(value: str, errors='strict') str
archivebox.plugins_search.sqlite.apps._escape_sqlite3_identifier(value: str) str
archivebox.plugins_search.sqlite.apps._create_tables()
archivebox.plugins_search.sqlite.apps._handle_query_exception(exc: Exception)
class archivebox.plugins_search.sqlite.apps.SqliteftsSearchBackend

Bases: abx.archivebox.base_searchbackend.BaseSearchBackend

name: str

‘sqlite’

docs_url: str

https://www.sqlite.org/fts5.html

static index(snapshot_id: str, texts: List[str])
static search(text: str) List[str]
static flush(snapshot_ids: Iterable[str])
archivebox.plugins_search.sqlite.apps.SQLITEFTS_SEARCH_BACKEND

‘SqliteftsSearchBackend(…)’

class archivebox.plugins_search.sqlite.apps.SqliteftsSearchPlugin

Bases: abx.archivebox.base_plugin.BasePlugin

app_label: str

‘sqlitefts’

verbose_name: str

‘SQLite FTS5 Search’

hooks: List[pydantic.InstanceOf[abx.archivebox.base_hook.BaseHook]]

None

archivebox.plugins_search.sqlite.apps.PLUGIN

‘SqliteftsSearchPlugin(…)’

archivebox.plugins_search.sqlite.apps.DJANGO_APP

None