.oO SearXNG Developer Documentation Oo.
|
Functions | |
init (engine_settings) | |
search (query, params) | |
_fetch_results (cur) | |
Variables | |
str | engine_type = 'offline' |
str | host = "127.0.0.1" |
str | port = "5432" |
str | database = "" |
str | username = "" |
str | password = "" |
str | query_str = "" |
int | limit = 10 |
bool | paging = True |
str | result_template = 'key-value.html' |
_connection = None | |
PostgreSQL is a powerful and robust open source database. Before configuring the PostgreSQL engine, you must install the dependency ``psychopg2``. Example ======= Below is an example configuration: .. code:: yaml - name: my_database engine: postgresql database: my_database username: searxng password: password query_str: 'SELECT * from my_table WHERE my_column = %(query)s' Implementations ===============
|
protected |
Definition at line 85 of file postgresql.py.
searx.engines.postgresql.init | ( | engine_settings | ) |
Definition at line 57 of file postgresql.py.
searx.engines.postgresql.search | ( | query, | |
params ) |
Definition at line 75 of file postgresql.py.
|
protected |
Definition at line 54 of file postgresql.py.
str searx.engines.postgresql.database = "" |
Definition at line 39 of file postgresql.py.
str searx.engines.postgresql.engine_type = 'offline' |
Definition at line 31 of file postgresql.py.
str searx.engines.postgresql.host = "127.0.0.1" |
Definition at line 33 of file postgresql.py.
int searx.engines.postgresql.limit = 10 |
Definition at line 51 of file postgresql.py.
bool searx.engines.postgresql.paging = True |
Definition at line 52 of file postgresql.py.
str searx.engines.postgresql.password = "" |
Definition at line 45 of file postgresql.py.
str searx.engines.postgresql.port = "5432" |
Definition at line 36 of file postgresql.py.
str searx.engines.postgresql.query_str = "" |
Definition at line 48 of file postgresql.py.
str searx.engines.postgresql.result_template = 'key-value.html' |
Definition at line 53 of file postgresql.py.
str searx.engines.postgresql.username = "" |
Definition at line 42 of file postgresql.py.