Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
33704f49
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
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看板
未验证
提交
33704f49
编写于
9月 23, 2021
作者:
J
Jason-Jia
提交者:
GitHub
9月 23, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into jiachenyang
上级
b902fbf3
42df22ad
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
978 addition
and
928 deletion
+978
-928
README-CN.md
README-CN.md
+1
-0
README.md
README.md
+1
-0
src/kit/taosdemo/taosdemo.c
src/kit/taosdemo/taosdemo.c
+1
-1
src/kit/taosdump/taosdump.c
src/kit/taosdump/taosdump.c
+11
-5
tests/examples/c/apitest.c
tests/examples/c/apitest.c
+0
-921
tests/examples/c/makefile
tests/examples/c/makefile
+3
-0
tests/script/api/makefile
tests/script/api/makefile
+11
-1
tests/script/api/openTSDBTest.c
tests/script/api/openTSDBTest.c
+950
-0
未找到文件。
README-CN.md
浏览文件 @
33704f49
...
...
@@ -7,6 +7,7 @@
[

](https://www.taosdata.com)
简体中文 |
[
English
](
./README.md
)
很多职位正在热招中,请看
[
这里
](
https://www.taosdata.com/cn/careers/
)
# TDengine 简介
...
...
README.md
浏览文件 @
33704f49
...
...
@@ -7,6 +7,7 @@
[

](https://www.taosdata.com)
English |
[
简体中文
](
./README-CN.md
)
We are hiring, check
[
here
](
https://www.taosdata.com/en/careers/
)
# What is TDengine?
...
...
src/kit/taosdemo/taosdemo.c
浏览文件 @
33704f49
...
...
@@ -6717,7 +6717,7 @@ static int generateSampleFromRand(
case
TSDB_DATA_TYPE_NCHAR
:
dataLen
=
(
columns
)
?
columns
[
c
].
dataLen
:
g_args
.
binwidth
;
rand_string
(
data
,
dataLen
);
rand_string
(
data
,
dataLen
-
1
);
pos
+=
sprintf
(
buff
+
pos
,
"%s,"
,
data
);
break
;
...
...
src/kit/taosdump/taosdump.c
浏览文件 @
33704f49
...
...
@@ -346,7 +346,7 @@ static int64_t taosDumpTableData(FILE *fp, char *tbName,
TAOS
*
taos
,
char
*
dbName
,
int
precision
,
char
*
jsonAvroSchema
);
static
int
taosCheckParam
(
struct
arguments
*
arguments
);
static
int
checkParam
(
);
static
void
taosFreeDbInfos
();
struct
arguments
g_args
=
{
...
...
@@ -2178,17 +2178,23 @@ static int64_t taosDumpTableData(FILE *fp, char *tbName,
return
totalRows
;
}
static
int
taosCheckParam
(
struct
arguments
*
arguments
)
{
static
int
checkParam
(
)
{
if
(
g_args
.
all_databases
&&
g_args
.
databases
)
{
fprintf
(
stderr
,
"conflict option --all-databases and --databases
\n
"
);
errorPrint
(
"%s"
,
"conflict option --all-databases and --databases
\n
"
);
return
-
1
;
}
if
(
g_args
.
start_time
>
g_args
.
end_time
)
{
fprintf
(
stderr
,
"start time is larger than end time
\n
"
);
errorPrint
(
"%s"
,
"start time is larger than end time
\n
"
);
return
-
1
;
}
if
(
g_args
.
arg_list_len
==
0
)
{
if
((
!
g_args
.
all_databases
)
&&
(
!
g_args
.
databases
)
&&
(
!
g_args
.
isDumpIn
))
{
errorPrint
(
"%s"
,
"taosdump requires parameters
\n
"
);
return
-
1
;
}
}
/*
if (g_args.isDumpIn && (strcmp(g_args.outpath, DEFAULT_DUMP_FILE) != 0)) {
fprintf(stderr, "duplicate parameter input and output file path\n");
...
...
@@ -2768,7 +2774,7 @@ int main(int argc, char *argv[]) {
}
}
printf
(
"==============================
\n
"
);
if
(
taosC
heckParam
(
&
g_args
)
<
0
)
{
if
(
c
heckParam
(
&
g_args
)
<
0
)
{
exit
(
EXIT_FAILURE
);
}
...
...
tests/examples/c/apitest.c
浏览文件 @
33704f49
此差异已折叠。
点击以展开。
tests/examples/c/makefile
浏览文件 @
33704f49
...
...
@@ -7,6 +7,7 @@ LFLAGS = '-Wl,-rpath,/usr/local/taos/driver/' -ltaos -lpthread -lm -lrt
CFLAGS
=
-O3
-g
-Wall
-Wno-deprecated
-fPIC
-Wno-unused-result
-Wconversion
\
-Wno-char-subscripts
-D_REENTRANT
-Wno-format
-D_REENTRANT
-DLINUX
\
-Wno-unused-function
-D_M_X64
-I
/usr/local/taos/include
-std
=
gnu99
\
-I../../../deps/cJson/inc
all
:
$(TARGET)
...
...
@@ -29,4 +30,6 @@ clean:
rm
$(ROOT)
subscribe
rm
$(ROOT)
apitest
tests/script/api/makefile
浏览文件 @
33704f49
...
...
@@ -7,9 +7,11 @@ LFLAGS = '-Wl,-rpath,/usr/local/taos/driver/' -ltaos -lpthread -lm -lrt
CFLAGS
=
-O3
-g
-Wall
-Wno-deprecated
-fPIC
-Wno-unused-result
-Wconversion
\
-Wno-char-subscripts
-D_REENTRANT
-Wno-format
-D_REENTRANT
-DLINUX
\
-Wno-unused-function
-D_M_X64
-I
/usr/local/taos/include
-std
=
gnu99
\
-I../../../deps/cJson/inc\
-I../../../src/os/inc/
-I../../../src/inc
-I../../../src/util/inc
\
-I
../../../src/common/inc
-I../../../src/common/inc
-I../../../deps/cJson/inc
all
:
$(TARGET)
...
...
@@ -18,11 +20,19 @@ exe:
gcc
$(CFLAGS)
./stmtBatchTest.c
-o
$(ROOT)
stmtBatchTest
$(LFLAGS)
gcc
$(CFLAGS)
./stmtTest.c
-o
$(ROOT)
stmtTest
$(LFLAGS)
gcc
$(CFLAGS)
./stmt_function.c
-o
$(ROOT)
stmt_function
$(LFLAGS)
gcc
$(CFLAGS)
./clientcfgtest.c
-o
$(ROOT)clientcfgtest
$(LFLAGS)
gcc
$(CFLAGS)
./openTSDBTest.c
-o
$(ROOT)openTSDBTest
$(LFLAGS)
clean
:
rm
$(ROOT)
batchprepare
rm
$(ROOT)
stmtBatchTest
rm
$(ROOT)
stmtTest
rm
$(ROOT)
stmt_function
rm
$(ROOT)clientcfgtest
rm
$(ROOT)openTSDBTest
tests/script/api/openTSDBTest.c
0 → 100644
浏览文件 @
33704f49
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录