.oO SearXNG Developer Documentation Oo.
|
Functions | |
init (engine_settings) | |
search (query, params) | |
_fetch_results (cur) | |
Variables | |
str | engine_type = 'offline' |
str | auth_plugin = 'caching_sha2_password' |
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 | |
MySQL is said to be the most popular open source database. Before enabling MySQL engine, you must install the package ``mysql-connector-python``. The authentication plugin is configurable by setting ``auth_plugin`` in the attributes. By default it is set to ``caching_sha2_password``. Example ======= This is an example configuration for querying a MySQL server: .. code:: yaml - name: my_database engine: mysql_server database: my_database username: searxng password: password limit: 5 query_str: 'SELECT * from my_table WHERE my_column=%(query)s' Implementations ===============
|
protected |
Definition at line 91 of file mysql_server.py.
searx.engines.mysql_server.init | ( | engine_settings | ) |
Definition at line 62 of file mysql_server.py.
searx.engines.mysql_server.search | ( | query, | |
params ) |
Definition at line 81 of file mysql_server.py.
|
protected |
Definition at line 59 of file mysql_server.py.
str searx.engines.mysql_server.auth_plugin = 'caching_sha2_password' |
Definition at line 36 of file mysql_server.py.
str searx.engines.mysql_server.database = "" |
Definition at line 44 of file mysql_server.py.
str searx.engines.mysql_server.engine_type = 'offline' |
Definition at line 35 of file mysql_server.py.
str searx.engines.mysql_server.host = "127.0.0.1" |
Definition at line 38 of file mysql_server.py.
int searx.engines.mysql_server.limit = 10 |
Definition at line 56 of file mysql_server.py.
bool searx.engines.mysql_server.paging = True |
Definition at line 57 of file mysql_server.py.
str searx.engines.mysql_server.password = "" |
Definition at line 50 of file mysql_server.py.
int searx.engines.mysql_server.port = 3306 |
Definition at line 41 of file mysql_server.py.
str searx.engines.mysql_server.query_str = "" |
Definition at line 53 of file mysql_server.py.
str searx.engines.mysql_server.result_template = 'key-value.html' |
Definition at line 58 of file mysql_server.py.
str searx.engines.mysql_server.username = "" |
Definition at line 47 of file mysql_server.py.