feat: add elasticsearch extension support
This commit is contained in:
parent
9d3e7ad6d4
commit
5f1ed08d33
|
@ -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;
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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[]
|
||||
|
||||
|
|
Loading…
Reference in New Issue