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-orm':
|
||||||
case 'atest-store-cassandra':
|
case 'atest-store-cassandra':
|
||||||
case 'atest-store-iotdb':
|
case 'atest-store-iotdb':
|
||||||
|
case 'atest-store-elasticsearch':
|
||||||
ormDataHandler(data)
|
ormDataHandler(data)
|
||||||
success = true
|
success = true
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -794,10 +794,10 @@ var DataQueryAsync = (store: string, kind: string, currentDatabase: string, quer
|
||||||
queryObj['key'] = currentDatabase;
|
queryObj['key'] = currentDatabase;
|
||||||
break;
|
break;
|
||||||
case 'atest-store-etcd':
|
case 'atest-store-etcd':
|
||||||
queryObj['key'] = query;
|
|
||||||
break;
|
|
||||||
case 'atest-store-redis':
|
case 'atest-store-redis':
|
||||||
|
case 'atest-store-elasticsearch':
|
||||||
queryObj['key'] = query;
|
queryObj['key'] = query;
|
||||||
|
queryObj['sql'] = query;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
const requestOptions = {
|
const requestOptions = {
|
||||||
|
|
|
@ -115,6 +115,11 @@ const storeExtensions = [
|
||||||
defaultValue: 'atest'
|
defaultValue: 'atest'
|
||||||
}],
|
}],
|
||||||
link: 'https://github.com/LinuxSuRen/atest-ext-store-mongodb'
|
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[]
|
] as Store[]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue