File tree Expand file tree Collapse file tree 7 files changed +176
-288
lines changed Expand file tree Collapse file tree 7 files changed +176
-288
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,14 @@ export function NewSQL() {
5858 text : i18n ( 'action.drop-external-table' ) ,
5959 action : actions . dropExternalTable ,
6060 } ,
61+ {
62+ text : i18n ( 'action.add-index' ) ,
63+ action : actions . addTableIndex ,
64+ } ,
65+ {
66+ text : i18n ( 'action.drop-index' ) ,
67+ action : actions . dropTableIndex ,
68+ } ,
6169 ] ,
6270 } ,
6371 {
Original file line number Diff line number Diff line change 1010 "action.select-from-external-table" : " Select from external table" ,
1111 "action.delete-rows" : " Delete rows" ,
1212 "action.drop-table" : " Drop table" ,
13+ "action.add-index" : " Add index" ,
14+ "action.drop-index" : " Drop index" ,
1315 "action.drop-external-table" : " Drop external table" ,
1416 "menu.tables" : " Tables" ,
1517 "menu.topics" : " Topics" ,
Original file line number Diff line number Diff line change 2525 "actions.copied" : " The path is copied to the clipboard" ,
2626 "actions.notCopied" : " Couldn’t copy the path" ,
2727 "actions.copyPath" : " Copy path" ,
28+ "actions.dropIndex" : " Drop index" ,
2829 "actions.openPreview" : " Open preview" ,
2930 "actions.createTable" : " Create table..." ,
3031 "actions.createExternalTable" : " Create external table..." ,
3637 "actions.dropTopic" : " Drop topic..." ,
3738 "actions.dropView" : " Drop view..." ,
3839 "actions.alterTable" : " Alter table..." ,
40+ "actions.addTableIndex" : " Add index..." ,
3941 "actions.alterTopic" : " Alter topic..." ,
4042 "actions.selectQuery" : " Select query..." ,
4143 "actions.upsertQuery" : " Upsert query..." ,
Original file line number Diff line number Diff line change 11import { changeUserInput } from '../../../store/reducers/executeQuery' ;
22
33import {
4+ addTableIndex ,
45 alterAsyncReplicationTemplate ,
56 alterTableTemplate ,
67 alterTopicTemplate ,
@@ -17,6 +18,7 @@ import {
1718 dropAsyncReplicationTemplate ,
1819 dropExternalTableTemplate ,
1920 dropGroupTemplate ,
21+ dropTableIndex ,
2022 dropTableTemplate ,
2123 dropTopicTemplate ,
2224 dropUserTemplate ,
@@ -25,7 +27,7 @@ import {
2527 selectQueryTemplate ,
2628 updateTableTemplate ,
2729 upsertQueryTemplate ,
28- } from './newSQLQueryTemplates ' ;
30+ } from './schemaQueryTemplates ' ;
2931
3032export const bindActions = ( dispatch : React . Dispatch < any > ) => {
3133 const inputQuery = ( query : ( ) => string ) => ( ) => {
@@ -58,5 +60,7 @@ export const bindActions = (dispatch: React.Dispatch<any>) => {
5860 revokePrivilege : inputQuery ( revokePrivilegeTemplate ) ,
5961 dropUser : inputQuery ( dropUserTemplate ) ,
6062 dropGroup : inputQuery ( dropGroupTemplate ) ,
63+ addTableIndex : inputQuery ( addTableIndex ) ,
64+ dropTableIndex : inputQuery ( dropTableIndex ) ,
6165 } ;
6266} ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments