Skip to content

Commit ad85fb8

Browse files
committed
add redis key-value query support
1 parent 35340e9 commit ad85fb8

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

console/atest-ui/src/views/DataManager.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ watch(kind, (k) => {
3838
sqlQuery.value = 'show tables'
3939
queryTip.value = 'Enter SQL query'
4040
break;
41-
case 'atest-store-etcd':
41+
case 'atest-store-etcd', 'atest-store-redis':
4242
sqlQuery.value = ''
4343
queryTip.value = 'Enter key'
4444
break;
@@ -115,6 +115,9 @@ const executeQuery = async () => {
115115
case 'atest-store-etcd':
116116
keyValueDataHandler(data)
117117
break;
118+
case 'atest-store-redis':
119+
keyValueDataHandler(data)
120+
break;
118121
default:
119122
ElMessage({
120123
showClose: true,

console/atest-ui/src/views/net.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,9 @@ var DataQuery = (store: string, kind: string, currentDatabase: string, query: st
783783
case 'atest-store-etcd':
784784
queryObj['key'] = query;
785785
break;
786+
case 'atest-store-redis':
787+
queryObj['key'] = query;
788+
break;
786789
}
787790
const requestOptions = {
788791
method: 'POST',

console/atest-ui/src/views/store.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ const storeExtensions = [
8181
params: [],
8282
link: 'https://github.com/LinuxSuRen/atest-ext-store-etcd'
8383
},
84+
{
85+
name: 'atest-store-redis',
86+
params: [],
87+
link: 'https://github.com/LinuxSuRen/atest-ext-store-redis'
88+
},
8489
{
8590
name: 'atest-store-mongodb',
8691
params: [{

0 commit comments

Comments
 (0)