feat: add elasticsearch extension support

This commit is contained in:
rick 2025-04-09 10:57:12 +00:00
parent 9d3e7ad6d4
commit 5f1ed08d33
3 changed files with 8 additions and 2 deletions

View File

@ -166,6 +166,7 @@ const executeWithQuery = async (sql: string) => {
case 'atest-store-orm':
case 'atest-store-cassandra':
case 'atest-store-iotdb':
case 'atest-store-elasticsearch':
ormDataHandler(data)
success = true
break;

View File

@ -794,10 +794,10 @@ var DataQueryAsync = (store: string, kind: string, currentDatabase: string, quer
queryObj['key'] = currentDatabase;
break;
case 'atest-store-etcd':
queryObj['key'] = query;
break;
case 'atest-store-redis':
case 'atest-store-elasticsearch':
queryObj['key'] = query;
queryObj['sql'] = query;
break;
}
const requestOptions = {

View File

@ -115,6 +115,11 @@ const storeExtensions = [
defaultValue: 'atest'
}],
link: 'https://github.com/LinuxSuRen/atest-ext-store-mongodb'
},
{
name: 'atest-store-elasticsearch',
params: [],
link: 'https://github.com/LinuxSuRen/atest-ext-store-elasticsearch'
}
] as Store[]