.oO SearXNG Developer Documentation Oo.
|
Functions | |
init (engine_settings) | |
search (query, params) | |
Variables | |
logger = logging.getLogger() | |
str | engine_type = 'offline' |
str | host = "127.0.0.1" |
int | port = 3306 |
str | database = "" |
str | username = "" |
str | password = "" |
str | query_str = "" |
int | limit = 10 |
bool | paging = True |
str | result_template = 'key-value.html' |
_connection = None | |
MariaDB is a community driven fork of MySQL. Before enabling MariaDB engine, you must the install the pip package ``mariadb`` along with the necessary prerequities. `See the following documentation for more details <https://mariadb.com/docs/server/connect/programming-languages/c/install/>`_ Example ======= This is an example configuration for querying a MariaDB server: .. code:: yaml - name: my_database engine: mariadb_server database: my_database username: searxng password: password limit: 5 query_str: 'SELECT * from my_table WHERE my_column=%(query)s' Implementations ===============
searx.engines.mariadb_server.init | ( | engine_settings | ) |
Definition at line 70 of file mariadb_server.py.
searx.engines.mariadb_server.search | ( | query, | |
params ) |
Definition at line 82 of file mariadb_server.py.
|
protected |
Definition at line 67 of file mariadb_server.py.
str searx.engines.mariadb_server.database = "" |
Definition at line 52 of file mariadb_server.py.
str searx.engines.mariadb_server.engine_type = 'offline' |
Definition at line 44 of file mariadb_server.py.
str searx.engines.mariadb_server.host = "127.0.0.1" |
Definition at line 46 of file mariadb_server.py.
int searx.engines.mariadb_server.limit = 10 |
Definition at line 64 of file mariadb_server.py.
searx.engines.mariadb_server.logger = logging.getLogger() |
Definition at line 41 of file mariadb_server.py.
bool searx.engines.mariadb_server.paging = True |
Definition at line 65 of file mariadb_server.py.
str searx.engines.mariadb_server.password = "" |
Definition at line 58 of file mariadb_server.py.
int searx.engines.mariadb_server.port = 3306 |
Definition at line 49 of file mariadb_server.py.
str searx.engines.mariadb_server.query_str = "" |
Definition at line 61 of file mariadb_server.py.
str searx.engines.mariadb_server.result_template = 'key-value.html' |
Definition at line 66 of file mariadb_server.py.
str searx.engines.mariadb_server.username = "" |
Definition at line 55 of file mariadb_server.py.