feat: support Elasticsearch datasource #108

This commit is contained in:
junjun
2025-09-17 10:32:43 +08:00
parent a0d603ca44
commit dadd3e6d5f
+1 -1
View File
@@ -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}"