mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: support Elasticsearch datasource #108
This commit is contained in:
@@ -91,7 +91,7 @@ def get_es_fields(conf: DatasourceConf, table_name: str):
|
||||
def get_es_data_by_http(conf: DatasourceConf, sql: str):
|
||||
url = conf.host
|
||||
while url.endswith('/'):
|
||||
url = sql[:-1]
|
||||
url = url[:-1]
|
||||
|
||||
host = f'{url}/_sql?format=json'
|
||||
username = f"{conf.username}"
|
||||
|
||||
Reference in New Issue
Block a user