Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
0fac3f7d
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1181
Star
22014
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0fac3f7d
编写于
6月 14, 2023
作者:
A
Alex Duan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: add compact split resume stream pause stream to tab key
上级
74411a48
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
19 addition
and
4 deletion
+19
-4
tools/shell/src/shellAuto.c
tools/shell/src/shellAuto.c
+19
-4
未找到文件。
tools/shell/src/shellAuto.c
浏览文件 @
0fac3f7d
...
...
@@ -91,9 +91,14 @@ SWords shellCommands[] = {
{
"create stream <anyword> into <anyword> as select"
,
0
,
0
,
NULL
},
// 26 append sub sql
{
"create topic <anyword> as select"
,
0
,
0
,
NULL
},
// 27 append sub sql
{
"create function <anyword> as <anyword> outputtype <data_types> language <udf_language>"
,
0
,
0
,
NULL
},
{
"create or replace <anyword> as <anyword> outputtype <data_types> language <udf_language>"
,
0
,
0
,
NULL
},
{
"create aggregate function <anyword> as <anyword> outputtype <data_types> bufsize <anyword> language <udf_language>"
,
0
,
0
,
NULL
},
{
"create or replace aggregate function <anyword> as <anyword> outputtype <data_types> bufsize <anyword> language <udf_language>"
,
0
,
0
,
NULL
},
{
"create user <anyword> pass <anyword> sysinfo 0;"
,
0
,
0
,
NULL
},
{
"create user <anyword> pass <anyword> sysinfo 1;"
,
0
,
0
,
NULL
},
#ifdef TD_ENTERPRISE
{
"compact database <db_name>"
,
0
,
0
,
NULL
},
#endif
{
"describe <all_table>"
,
0
,
0
,
NULL
},
{
"delete from <all_table> where "
,
0
,
0
,
NULL
},
{
"drop database <db_name>"
,
0
,
0
,
NULL
},
...
...
@@ -117,7 +122,11 @@ SWords shellCommands[] = {
{
"kill connection <anyword> ;"
,
0
,
0
,
NULL
},
{
"kill query "
,
0
,
0
,
NULL
},
{
"kill transaction "
,
0
,
0
,
NULL
},
#ifdef TD_ENTERPRISE
{
"merge vgroup "
,
0
,
0
,
NULL
},
#endif
{
"pause stream <stream_name> ;"
,
0
,
0
,
NULL
},
{
"resume stream <stream_name> ;"
,
0
,
0
,
NULL
},
{
"reset query cache;"
,
0
,
0
,
NULL
},
{
"restore dnode <dnode_id> ;"
,
0
,
0
,
NULL
},
{
"restore vnode on dnode <dnode_id> ;"
,
0
,
0
,
NULL
},
...
...
@@ -173,7 +182,9 @@ SWords shellCommands[] = {
{
"show vgroups;"
,
0
,
0
,
NULL
},
{
"show consumers;"
,
0
,
0
,
NULL
},
{
"show grants;"
,
0
,
0
,
NULL
},
#ifdef TD_ENTERPRISE
{
"split vgroup "
,
0
,
0
,
NULL
},
#endif
{
"insert into <tb_name> values("
,
0
,
0
,
NULL
},
{
"insert into <tb_name> using <stb_name> tags("
,
0
,
0
,
NULL
},
{
"insert into <tb_name> using <stb_name> <anyword> values("
,
0
,
0
,
NULL
},
...
...
@@ -432,8 +443,6 @@ void showHelp() {
kill connection <connection_id>;
\n
\
kill query <query_id>;
\n
\
kill transaction <transaction_id>;
\n
\
----- M -----
\n
\
merge vgroup ...
\n
\
----- R -----
\n
\
reset query cache;
\n
\
restore dnode <dnode_id> ;
\n
\
...
...
@@ -489,14 +498,20 @@ void showHelp() {
show vgroups;
\n
\
show consumers;
\n
\
show grants;
\n
\
split vgroup ...
\n
\
----- T -----
\n
\
trim database <db_name>;
\n
\
----- U -----
\n
\
use <db_name>;"
);
printf
(
"
\n\n
"
);
#ifdef TD_ENTERPRISE
printf
(
"
\n
\
----- special commands on enterpise version -----
\n
\
compact database <db_name>;
\n
\
split vgroup <vgroup_id>;
\n
"
);
#endif
printf
(
"
\n\n
"
);
// define in getDuration() function
printf
(
"\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录