MCPcopy Index your code
hub / github.com/dataease/SQLBot / get_es_connect

Function get_es_connect

backend/apps/db/es_engine.py:27–35  ·  view source on GitHub ↗
(conf: DatasourceConf)

Source from the content-addressed store, hash-verified

25
26
27def get_es_connect(conf: DatasourceConf):
28 es_client = Elasticsearch(
29 [conf.host], # ES address
30 basic_auth=(conf.username, conf.password),
31 verify_certs=False,
32 compatibility_mode=True,
33 headers=get_es_auth(conf)
34 )
35 return es_client
36
37
38# get tables

Callers 3

check_connectionFunction · 0.90
get_es_indexFunction · 0.85
get_es_fieldsFunction · 0.85

Calls 1

get_es_authFunction · 0.85

Tested by

no test coverage detected