add redis key-value query support

This commit is contained in:
rick 2025-02-28 09:35:25 +00:00
parent 35340e9216
commit ad85fb89cb
3 changed files with 12 additions and 1 deletions

View File

@ -38,7 +38,7 @@ watch(kind, (k) => {
sqlQuery.value = 'show tables'
queryTip.value = 'Enter SQL query'
break;
case 'atest-store-etcd':
case 'atest-store-etcd', 'atest-store-redis':
sqlQuery.value = ''
queryTip.value = 'Enter key'
break;
@ -115,6 +115,9 @@ const executeQuery = async () => {
case 'atest-store-etcd':
keyValueDataHandler(data)
break;
case 'atest-store-redis':
keyValueDataHandler(data)
break;
default:
ElMessage({
showClose: true,

View File

@ -783,6 +783,9 @@ var DataQuery = (store: string, kind: string, currentDatabase: string, query: st
case 'atest-store-etcd':
queryObj['key'] = query;
break;
case 'atest-store-redis':
queryObj['key'] = query;
break;
}
const requestOptions = {
method: 'POST',

View File

@ -81,6 +81,11 @@ const storeExtensions = [
params: [],
link: 'https://github.com/LinuxSuRen/atest-ext-store-etcd'
},
{
name: 'atest-store-redis',
params: [],
link: 'https://github.com/LinuxSuRen/atest-ext-store-redis'
},
{
name: 'atest-store-mongodb',
params: [{