Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
0e5b0e59
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
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看板
提交
0e5b0e59
编写于
9月 22, 2022
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '3.0' of
https://github.com/taosdata/TDengine
into feat/stream_compression
上级
9f7771cd
c577897c
变更
43
显示空白变更内容
内联
并排
Showing
43 changed file
with
416 addition
and
181 deletion
+416
-181
docs/en/07-develop/01-connect/_connect_cs.mdx
docs/en/07-develop/01-connect/_connect_cs.mdx
+1
-1
docs/en/07-develop/03-insert-data/_cs_line.mdx
docs/en/07-develop/03-insert-data/_cs_line.mdx
+1
-1
docs/en/07-develop/03-insert-data/_cs_opts_json.mdx
docs/en/07-develop/03-insert-data/_cs_opts_json.mdx
+1
-1
docs/en/07-develop/03-insert-data/_cs_opts_telnet.mdx
docs/en/07-develop/03-insert-data/_cs_opts_telnet.mdx
+1
-1
docs/en/07-develop/03-insert-data/_cs_sql.mdx
docs/en/07-develop/03-insert-data/_cs_sql.mdx
+1
-1
docs/en/07-develop/03-insert-data/_cs_stmt.mdx
docs/en/07-develop/03-insert-data/_cs_stmt.mdx
+1
-1
docs/en/07-develop/04-query-data/_cs.mdx
docs/en/07-develop/04-query-data/_cs.mdx
+1
-1
docs/en/07-develop/04-query-data/_cs_async.mdx
docs/en/07-develop/04-query-data/_cs_async.mdx
+1
-1
docs/en/07-develop/_sub_cs.mdx
docs/en/07-develop/_sub_cs.mdx
+1
-1
docs/en/14-reference/03-connector/09-csharp.mdx
docs/en/14-reference/03-connector/09-csharp.mdx
+1
-1
docs/examples/csharp/.gitignore
docs/examples/csharp/.gitignore
+23
-8
docs/examples/csharp/asyncQuery/Program.cs
docs/examples/csharp/asyncQuery/Program.cs
+16
-11
docs/examples/csharp/asyncQuery/asyncquery.csproj
docs/examples/csharp/asyncQuery/asyncquery.csproj
+1
-1
docs/examples/csharp/connect/Program.cs
docs/examples/csharp/connect/Program.cs
+1
-1
docs/examples/csharp/connect/connect.csproj
docs/examples/csharp/connect/connect.csproj
+0
-0
docs/examples/csharp/csharp.sln
docs/examples/csharp/csharp.sln
+94
-0
docs/examples/csharp/influxdbLine/Program.cs
docs/examples/csharp/influxdbLine/Program.cs
+4
-16
docs/examples/csharp/influxdbLine/influxdbline.csproj
docs/examples/csharp/influxdbLine/influxdbline.csproj
+0
-0
docs/examples/csharp/optsJSON/Program.cs
docs/examples/csharp/optsJSON/Program.cs
+20
-27
docs/examples/csharp/optsJSON/optsJSON.csproj
docs/examples/csharp/optsJSON/optsJSON.csproj
+0
-0
docs/examples/csharp/optsTelnet/Program.cs
docs/examples/csharp/optsTelnet/Program.cs
+20
-27
docs/examples/csharp/optsTelnet/optstelnet.csproj
docs/examples/csharp/optsTelnet/optstelnet.csproj
+0
-0
docs/examples/csharp/query/Program.cs
docs/examples/csharp/query/Program.cs
+80
-0
docs/examples/csharp/query/query.csproj
docs/examples/csharp/query/query.csproj
+1
-1
docs/examples/csharp/sqlInsert/Program.cs
docs/examples/csharp/sqlInsert/Program.cs
+69
-0
docs/examples/csharp/sqlInsert/sqlinsert.csproj
docs/examples/csharp/sqlInsert/sqlinsert.csproj
+0
-0
docs/examples/csharp/stmtInsert/Program.cs
docs/examples/csharp/stmtInsert/Program.cs
+36
-42
docs/examples/csharp/stmtInsert/stmtinsert.csproj
docs/examples/csharp/stmtInsert/stmtinsert.csproj
+0
-0
docs/examples/csharp/subscribe/Program.cs
docs/examples/csharp/subscribe/Program.cs
+4
-8
docs/examples/csharp/subscribe/subscribe.csproj
docs/examples/csharp/subscribe/subscribe.csproj
+1
-1
docs/examples/csharp/wsInsert/Program.cs
docs/examples/csharp/wsInsert/Program.cs
+1
-1
docs/examples/csharp/wsQuery/Program.cs
docs/examples/csharp/wsQuery/Program.cs
+1
-1
docs/zh/07-develop/01-connect/_connect_cs.mdx
docs/zh/07-develop/01-connect/_connect_cs.mdx
+1
-1
docs/zh/07-develop/03-insert-data/_cs_line.mdx
docs/zh/07-develop/03-insert-data/_cs_line.mdx
+1
-1
docs/zh/07-develop/03-insert-data/_cs_opts_json.mdx
docs/zh/07-develop/03-insert-data/_cs_opts_json.mdx
+1
-1
docs/zh/07-develop/03-insert-data/_cs_opts_telnet.mdx
docs/zh/07-develop/03-insert-data/_cs_opts_telnet.mdx
+1
-1
docs/zh/07-develop/03-insert-data/_cs_sql.mdx
docs/zh/07-develop/03-insert-data/_cs_sql.mdx
+1
-1
docs/zh/07-develop/03-insert-data/_cs_stmt.mdx
docs/zh/07-develop/03-insert-data/_cs_stmt.mdx
+1
-1
docs/zh/07-develop/04-query-data/_cs.mdx
docs/zh/07-develop/04-query-data/_cs.mdx
+1
-1
docs/zh/07-develop/04-query-data/_cs_async.mdx
docs/zh/07-develop/04-query-data/_cs_async.mdx
+1
-1
docs/zh/07-develop/_sub_cs.mdx
docs/zh/07-develop/_sub_cs.mdx
+1
-1
docs/zh/08-connector/40-csharp.mdx
docs/zh/08-connector/40-csharp.mdx
+1
-1
tests/docs-examples-test/csharp.sh
tests/docs-examples-test/csharp.sh
+24
-16
未找到文件。
docs/en/07-develop/01-connect/_connect_cs.mdx
浏览文件 @
0e5b0e59
```csharp title="Native Connection"
{{#include docs/examples/csharp/
ConnectExample
.cs}}
{{#include docs/examples/csharp/
connect/Program
.cs}}
```
:::info
...
...
docs/en/07-develop/03-insert-data/_cs_line.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
InfluxDBLineExample
.cs}}
{{#include docs/examples/csharp/
influxdbLine/Program
.cs}}
```
docs/en/07-develop/03-insert-data/_cs_opts_json.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
OptsJsonExample
.cs}}
{{#include docs/examples/csharp/
optsJSON/Program
.cs}}
```
docs/en/07-develop/03-insert-data/_cs_opts_telnet.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
OptsTelnetExample
.cs}}
{{#include docs/examples/csharp/
optsTelnet/Program
.cs}}
```
docs/en/07-develop/03-insert-data/_cs_sql.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
SQLInsertExample
.cs}}
{{#include docs/examples/csharp/
sqlInsert/Program
.cs}}
```
docs/en/07-develop/03-insert-data/_cs_stmt.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
StmtInsertExample
.cs}}
{{#include docs/examples/csharp/
stmtInsert/Program
.cs}}
```
docs/en/07-develop/04-query-data/_cs.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
QueryExample
.cs}}
{{#include docs/examples/csharp/
query/Program
.cs}}
```
docs/en/07-develop/04-query-data/_cs_async.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
AsyncQueryExample
.cs}}
{{#include docs/examples/csharp/
asyncQuery/Program
.cs}}
```
docs/en/07-develop/_sub_cs.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
SubscribeDemo
.cs}}
{{#include docs/examples/csharp/
subscribe/Program
.cs}}
```
\ No newline at end of file
docs/en/14-reference/03-connector/09-csharp.mdx
浏览文件 @
0e5b0e59
...
...
@@ -79,7 +79,7 @@ dotnet add exmaple.csproj reference src/TDengine.csproj
## Establish a Connection
```
C#
```
csharp
using TDengineDriver;
namespace TDengineExample
...
...
docs/examples/csharp/.gitignore
浏览文件 @
0e5b0e59
bin
obj
.vs
*.sln
wsConnect/obj
wsInsert/obj
wsQuery/obj
wsStmt/obj
asyncQuery/bin
connect/bin
influxdbLine/bin
optsJSON/bin
optsTelnet/bin
query/bin
sqlInsert/bin
stmtInsert/bin
subscribe/bin
wsConnect/bin
wsInsert/bin
wsQuery/bin
wsStmt/bin
asyncQuery/obj
connect/obj
influxdbLine/obj
optsJSON/obj
optsTelnet/obj
query/obj
sqlInsert/obj
stmtInsert/obj
subscribe/obj
wsConnect/obj
wsInsert/obj
wsQuery/obj
wsStmt/obj
\ No newline at end of file
docs/examples/csharp/
AsyncQueryExample
.cs
→
docs/examples/csharp/
asyncQuery/Program
.cs
浏览文件 @
0e5b0e59
...
...
@@ -11,11 +11,17 @@ namespace TDengineExample
static
void
Main
()
{
IntPtr
conn
=
GetConnection
();
try
{
QueryAsyncCallback
queryAsyncCallback
=
new
QueryAsyncCallback
(
QueryCallback
);
TDengine
.
QueryAsync
(
conn
,
"select * from meters"
,
queryAsyncCallback
,
IntPtr
.
Zero
);
Thread
.
Sleep
(
2000
);
}
finally
{
TDengine
.
Close
(
conn
);
TDengine
.
Cleanup
();
}
}
static
void
QueryCallback
(
IntPtr
param
,
IntPtr
taosRes
,
int
code
)
...
...
@@ -27,7 +33,7 @@ namespace TDengineExample
}
else
{
Console
.
WriteLine
(
$"async query data failed, failed code
{
code
}
"
);
throw
new
Exception
(
$"async query data failed,code:
{
code
}
,reason:
{
TDengine
.
Error
(
taosRes
)
}
"
);
}
}
...
...
@@ -43,7 +49,7 @@ namespace TDengineExample
for
(
int
i
=
0
;
i
<
dataList
.
Count
;
i
++)
{
if
(
i
!=
0
&&
(
i
+
1
)
%
metaList
.
Count
==
0
)
if
(
i
!=
0
&&
(
i
+
1
)
%
metaList
.
Count
==
0
)
{
Console
.
WriteLine
(
"{0}\t|"
,
dataList
[
i
]);
}
...
...
@@ -63,7 +69,7 @@ namespace TDengineExample
}
else
{
Console
.
WriteLine
(
$"FetchRawBlockCallback callback error, error code
{
numOfRows
}
"
);
throw
new
Exception
(
$"FetchRawBlockCallback callback error, error code
{
numOfRows
}
"
);
}
TDengine
.
FreeResult
(
taosRes
);
}
...
...
@@ -79,8 +85,7 @@ namespace TDengineExample
var
conn
=
TDengine
.
Connect
(
host
,
username
,
password
,
dbname
,
port
);
if
(
conn
==
IntPtr
.
Zero
)
{
Console
.
WriteLine
(
"Connect to TDengine failed"
);
Environment
.
Exit
(
0
);
throw
new
Exception
(
"Connect to TDengine failed"
);
}
else
{
...
...
docs/examples/csharp/asyncquery.csproj
→
docs/examples/csharp/async
Query/async
query.csproj
浏览文件 @
0e5b0e59
...
...
@@ -9,7 +9,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TDengine.Connector" Version="3.0.
0
" />
<PackageReference Include="TDengine.Connector" Version="3.0.
1
" />
</ItemGroup>
</Project>
docs/examples/csharp/
ConnectExample
.cs
→
docs/examples/csharp/
connect/Program
.cs
浏览文件 @
0e5b0e59
...
...
@@ -16,7 +16,7 @@ namespace TDengineExample
var
conn
=
TDengine
.
Connect
(
host
,
username
,
password
,
dbname
,
port
);
if
(
conn
==
IntPtr
.
Zero
)
{
Console
.
WriteLine
(
"Connect to TDengine failed"
);
throw
new
Exception
(
"Connect to TDengine failed"
);
}
else
{
...
...
docs/examples/csharp/connect.csproj
→
docs/examples/csharp/connect
/connect
.csproj
浏览文件 @
0e5b0e59
文件已移动
docs/examples/csharp/csharp.sln
0 → 100644
浏览文件 @
0e5b0e59
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "asyncquery", "asyncQuery\asyncquery.csproj", "{E2A5F00C-14E7-40E1-A2DE-6AB2975616D3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "connect", "connect\connect.csproj", "{CCC5042D-93FC-4AE0-B2F6-7E692FD476B7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "influxdbline", "influxdbLine\influxdbline.csproj", "{6A24FB80-1E3C-4E2D-A5AB-914FA583874D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "optsJSON", "optsJSON\optsJSON.csproj", "{6725A961-0C66-4196-AC98-8D3F3D757D6C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "optstelnet", "optsTelnet\optstelnet.csproj", "{B3B50D25-688B-44D4-8683-482ABC52FFCA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "query", "query\query.csproj", "{F2B7D13B-FE04-4C5C-BB6D-C12E0A9D9970}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "stmtinsert", "stmtInsert\stmtinsert.csproj", "{B40D6BED-BE3C-4B44-9B12-28BE441311BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "subscribe", "subscribe\subscribe.csproj", "{C3D45A8E-AFC0-4547-9F3C-467B0B583DED}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "wsConnect", "wsConnect\wsConnect.csproj", "{51E19494-845E-49ED-97C7-749AE63111BD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "wsInsert", "wsInsert\wsInsert.csproj", "{13E2233B-4AFF-40D9-AF42-AB3F01617540}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "wsQuery", "wsQuery\wsQuery.csproj", "{0F394169-C456-442C-929D-C2D43A0EEC7B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "wsStmt", "wsStmt\wsStmt.csproj", "{27B9C9AB-9055-4BF2-8A14-4E59F09D5985}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sqlinsert", "sqlInsert\sqlinsert.csproj", "{CD24BD12-8550-4627-A11D-707B446F48C3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E2A5F00C-14E7-40E1-A2DE-6AB2975616D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E2A5F00C-14E7-40E1-A2DE-6AB2975616D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E2A5F00C-14E7-40E1-A2DE-6AB2975616D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E2A5F00C-14E7-40E1-A2DE-6AB2975616D3}.Release|Any CPU.Build.0 = Release|Any CPU
{CCC5042D-93FC-4AE0-B2F6-7E692FD476B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CCC5042D-93FC-4AE0-B2F6-7E692FD476B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CCC5042D-93FC-4AE0-B2F6-7E692FD476B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CCC5042D-93FC-4AE0-B2F6-7E692FD476B7}.Release|Any CPU.Build.0 = Release|Any CPU
{6A24FB80-1E3C-4E2D-A5AB-914FA583874D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6A24FB80-1E3C-4E2D-A5AB-914FA583874D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A24FB80-1E3C-4E2D-A5AB-914FA583874D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6A24FB80-1E3C-4E2D-A5AB-914FA583874D}.Release|Any CPU.Build.0 = Release|Any CPU
{6725A961-0C66-4196-AC98-8D3F3D757D6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6725A961-0C66-4196-AC98-8D3F3D757D6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6725A961-0C66-4196-AC98-8D3F3D757D6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6725A961-0C66-4196-AC98-8D3F3D757D6C}.Release|Any CPU.Build.0 = Release|Any CPU
{B3B50D25-688B-44D4-8683-482ABC52FFCA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B3B50D25-688B-44D4-8683-482ABC52FFCA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B3B50D25-688B-44D4-8683-482ABC52FFCA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B3B50D25-688B-44D4-8683-482ABC52FFCA}.Release|Any CPU.Build.0 = Release|Any CPU
{F2B7D13B-FE04-4C5C-BB6D-C12E0A9D9970}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F2B7D13B-FE04-4C5C-BB6D-C12E0A9D9970}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F2B7D13B-FE04-4C5C-BB6D-C12E0A9D9970}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F2B7D13B-FE04-4C5C-BB6D-C12E0A9D9970}.Release|Any CPU.Build.0 = Release|Any CPU
{B40D6BED-BE3C-4B44-9B12-28BE441311BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B40D6BED-BE3C-4B44-9B12-28BE441311BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B40D6BED-BE3C-4B44-9B12-28BE441311BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B40D6BED-BE3C-4B44-9B12-28BE441311BA}.Release|Any CPU.Build.0 = Release|Any CPU
{C3D45A8E-AFC0-4547-9F3C-467B0B583DED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C3D45A8E-AFC0-4547-9F3C-467B0B583DED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C3D45A8E-AFC0-4547-9F3C-467B0B583DED}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C3D45A8E-AFC0-4547-9F3C-467B0B583DED}.Release|Any CPU.Build.0 = Release|Any CPU
{51E19494-845E-49ED-97C7-749AE63111BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{51E19494-845E-49ED-97C7-749AE63111BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{51E19494-845E-49ED-97C7-749AE63111BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{51E19494-845E-49ED-97C7-749AE63111BD}.Release|Any CPU.Build.0 = Release|Any CPU
{13E2233B-4AFF-40D9-AF42-AB3F01617540}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{13E2233B-4AFF-40D9-AF42-AB3F01617540}.Debug|Any CPU.Build.0 = Debug|Any CPU
{13E2233B-4AFF-40D9-AF42-AB3F01617540}.Release|Any CPU.ActiveCfg = Release|Any CPU
{13E2233B-4AFF-40D9-AF42-AB3F01617540}.Release|Any CPU.Build.0 = Release|Any CPU
{0F394169-C456-442C-929D-C2D43A0EEC7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0F394169-C456-442C-929D-C2D43A0EEC7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0F394169-C456-442C-929D-C2D43A0EEC7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0F394169-C456-442C-929D-C2D43A0EEC7B}.Release|Any CPU.Build.0 = Release|Any CPU
{27B9C9AB-9055-4BF2-8A14-4E59F09D5985}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{27B9C9AB-9055-4BF2-8A14-4E59F09D5985}.Debug|Any CPU.Build.0 = Debug|Any CPU
{27B9C9AB-9055-4BF2-8A14-4E59F09D5985}.Release|Any CPU.ActiveCfg = Release|Any CPU
{27B9C9AB-9055-4BF2-8A14-4E59F09D5985}.Release|Any CPU.Build.0 = Release|Any CPU
{CD24BD12-8550-4627-A11D-707B446F48C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD24BD12-8550-4627-A11D-707B446F48C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD24BD12-8550-4627-A11D-707B446F48C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CD24BD12-8550-4627-A11D-707B446F48C3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
docs/examples/csharp/
InfluxDBLineExample
.cs
→
docs/examples/csharp/
influxdbLine/Program
.cs
浏览文件 @
0e5b0e59
...
...
@@ -17,8 +17,7 @@ namespace TDengineExample
IntPtr
res
=
TDengine
.
SchemalessInsert
(
conn
,
lines
,
lines
.
Length
,
(
int
)
TDengineSchemalessProtocol
.
TSDB_SML_LINE_PROTOCOL
,
(
int
)
TDengineSchemalessPrecision
.
TSDB_SML_TIMESTAMP_MILLI_SECONDS
);
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
"SchemalessInsert failed since "
+
TDengine
.
Error
(
res
));
ExitProgram
(
conn
,
1
);
throw
new
Exception
(
"SchemalessInsert failed since "
+
TDengine
.
Error
(
res
));
}
else
{
...
...
@@ -26,7 +25,6 @@ namespace TDengineExample
Console
.
WriteLine
(
$"SchemalessInsert success, affected
{
affectedRows
}
rows"
);
}
TDengine
.
FreeResult
(
res
);
ExitProgram
(
conn
,
0
);
}
static
IntPtr
GetConnection
()
...
...
@@ -39,9 +37,7 @@ namespace TDengineExample
var
conn
=
TDengine
.
Connect
(
host
,
username
,
password
,
dbname
,
port
);
if
(
conn
==
IntPtr
.
Zero
)
{
Console
.
WriteLine
(
"Connect to TDengine failed"
);
TDengine
.
Cleanup
();
Environment
.
Exit
(
1
);
throw
new
Exception
(
"Connect to TDengine failed"
);
}
else
{
...
...
@@ -55,23 +51,15 @@ namespace TDengineExample
IntPtr
res
=
TDengine
.
Query
(
conn
,
"CREATE DATABASE test"
);
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
"failed to create database, reason: "
+
TDengine
.
Error
(
res
));
ExitProgram
(
conn
,
1
);
throw
new
Exception
(
"failed to create database, reason: "
+
TDengine
.
Error
(
res
));
}
res
=
TDengine
.
Query
(
conn
,
"USE test"
);
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
"failed to change database, reason: "
+
TDengine
.
Error
(
res
));
ExitProgram
(
conn
,
1
);
throw
new
Exception
(
"failed to change database, reason: "
+
TDengine
.
Error
(
res
));
}
}
static
void
ExitProgram
(
IntPtr
conn
,
int
exitCode
)
{
TDengine
.
Close
(
conn
);
TDengine
.
Cleanup
();
Environment
.
Exit
(
exitCode
);
}
}
}
docs/examples/csharp/influxdbline.csproj
→
docs/examples/csharp/influxdb
Line/influxdb
line.csproj
浏览文件 @
0e5b0e59
文件已移动
docs/examples/csharp/
OptsJsonExample
.cs
→
docs/examples/csharp/
optsJSON/Program
.cs
浏览文件 @
0e5b0e59
...
...
@@ -7,6 +7,8 @@ namespace TDengineExample
static
void
Main
()
{
IntPtr
conn
=
GetConnection
();
try
{
PrepareDatabase
(
conn
);
string
[]
lines
=
{
"[{\"metric\": \"meters.current\", \"timestamp\": 1648432611249, \"value\": 10.3, \"tags\": {\"location\": \"California.SanFrancisco\", \"groupid\": 2}},"
+
" {\"metric\": \"meters.voltage\", \"timestamp\": 1648432611249, \"value\": 219, \"tags\": {\"location\": \"California.LosAngeles\", \"groupid\": 1}}, "
+
...
...
@@ -17,8 +19,7 @@ namespace TDengineExample
IntPtr
res
=
TDengine
.
SchemalessInsert
(
conn
,
lines
,
1
,
(
int
)
TDengineSchemalessProtocol
.
TSDB_SML_JSON_PROTOCOL
,
(
int
)
TDengineSchemalessPrecision
.
TSDB_SML_TIMESTAMP_NOT_CONFIGURED
);
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
"SchemalessInsert failed since "
+
TDengine
.
Error
(
res
));
ExitProgram
(
conn
,
1
);
throw
new
Exception
(
"SchemalessInsert failed since "
+
TDengine
.
Error
(
res
));
}
else
{
...
...
@@ -26,8 +27,11 @@ namespace TDengineExample
Console
.
WriteLine
(
$"SchemalessInsert success, affected
{
affectedRows
}
rows"
);
}
TDengine
.
FreeResult
(
res
);
ExitProgram
(
conn
,
0
);
}
finally
{
TDengine
.
Close
(
conn
);
}
}
static
IntPtr
GetConnection
()
{
...
...
@@ -39,9 +43,7 @@ namespace TDengineExample
var
conn
=
TDengine
.
Connect
(
host
,
username
,
password
,
dbname
,
port
);
if
(
conn
==
IntPtr
.
Zero
)
{
Console
.
WriteLine
(
"Connect to TDengine failed"
);
TDengine
.
Cleanup
();
Environment
.
Exit
(
1
);
throw
new
Exception
(
"Connect to TDengine failed"
);
}
else
{
...
...
@@ -55,22 +57,13 @@ namespace TDengineExample
IntPtr
res
=
TDengine
.
Query
(
conn
,
"CREATE DATABASE test"
);
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
"failed to create database, reason: "
+
TDengine
.
Error
(
res
));
ExitProgram
(
conn
,
1
);
throw
new
Exception
(
"failed to create database, reason: "
+
TDengine
.
Error
(
res
));
}
res
=
TDengine
.
Query
(
conn
,
"USE test"
);
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
"failed to change database, reason: "
+
TDengine
.
Error
(
res
));
ExitProgram
(
conn
,
1
);
}
throw
new
Exception
(
"failed to change database, reason: "
+
TDengine
.
Error
(
res
));
}
static
void
ExitProgram
(
IntPtr
conn
,
int
exitCode
)
{
TDengine
.
Close
(
conn
);
TDengine
.
Cleanup
();
Environment
.
Exit
(
exitCode
);
}
}
}
docs/examples/csharp/opts
json
.csproj
→
docs/examples/csharp/opts
JSON/optsJSON
.csproj
浏览文件 @
0e5b0e59
文件已移动
docs/examples/csharp/
OptsTelnetExample
.cs
→
docs/examples/csharp/
optsTelnet/Program
.cs
浏览文件 @
0e5b0e59
...
...
@@ -7,6 +7,8 @@ namespace TDengineExample
static
void
Main
()
{
IntPtr
conn
=
GetConnection
();
try
{
PrepareDatabase
(
conn
);
string
[]
lines
=
{
"meters.current 1648432611249 10.3 location=California.SanFrancisco groupid=2"
,
...
...
@@ -21,8 +23,7 @@ namespace TDengineExample
IntPtr
res
=
TDengine
.
SchemalessInsert
(
conn
,
lines
,
lines
.
Length
,
(
int
)
TDengineSchemalessProtocol
.
TSDB_SML_TELNET_PROTOCOL
,
(
int
)
TDengineSchemalessPrecision
.
TSDB_SML_TIMESTAMP_NOT_CONFIGURED
);
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
"SchemalessInsert failed since "
+
TDengine
.
Error
(
res
));
ExitProgram
(
conn
,
1
);
throw
new
Exception
(
"SchemalessInsert failed since "
+
TDengine
.
Error
(
res
));
}
else
{
...
...
@@ -30,8 +31,11 @@ namespace TDengineExample
Console
.
WriteLine
(
$"SchemalessInsert success, affected
{
affectedRows
}
rows"
);
}
TDengine
.
FreeResult
(
res
);
ExitProgram
(
conn
,
0
);
}
catch
{
TDengine
.
Close
(
conn
);
}
}
static
IntPtr
GetConnection
()
{
...
...
@@ -43,9 +47,7 @@ namespace TDengineExample
var
conn
=
TDengine
.
Connect
(
host
,
username
,
password
,
dbname
,
port
);
if
(
conn
==
IntPtr
.
Zero
)
{
Console
.
WriteLine
(
"Connect to TDengine failed"
);
TDengine
.
Cleanup
();
Environment
.
Exit
(
1
);
throw
new
Exception
(
"Connect to TDengine failed"
);
}
else
{
...
...
@@ -59,22 +61,13 @@ namespace TDengineExample
IntPtr
res
=
TDengine
.
Query
(
conn
,
"CREATE DATABASE test"
);
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
"failed to create database, reason: "
+
TDengine
.
Error
(
res
));
ExitProgram
(
conn
,
1
);
throw
new
Exception
(
"failed to create database, reason: "
+
TDengine
.
Error
(
res
));
}
res
=
TDengine
.
Query
(
conn
,
"USE test"
);
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
"failed to change database, reason: "
+
TDengine
.
Error
(
res
));
ExitProgram
(
conn
,
1
);
}
throw
new
Exception
(
"failed to change database, reason: "
+
TDengine
.
Error
(
res
));
}
static
void
ExitProgram
(
IntPtr
conn
,
int
exitCode
)
{
TDengine
.
Close
(
conn
);
TDengine
.
Cleanup
();
Environment
.
Exit
(
exitCode
);
}
}
}
docs/examples/csharp/optstelnet.csproj
→
docs/examples/csharp/opts
Telnet/opts
telnet.csproj
浏览文件 @
0e5b0e59
文件已移动
docs/examples/csharp/
QueryExample
.cs
→
docs/examples/csharp/
query/Program
.cs
浏览文件 @
0e5b0e59
...
...
@@ -9,14 +9,13 @@ namespace TDengineExample
static
void
Main
()
{
IntPtr
conn
=
GetConnection
();
try
{
// run query
IntPtr
res
=
TDengine
.
Query
(
conn
,
"SELECT * FROM meters LIMIT 2"
);
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
"Failed to query since: "
+
TDengine
.
Error
(
res
));
TDengine
.
Close
(
conn
);
TDengine
.
Cleanup
();
return
;
throw
new
Exception
(
"Failed to query since: "
+
TDengine
.
Error
(
res
));
}
// get filed count
...
...
@@ -43,14 +42,14 @@ namespace TDengineExample
}
Console
.
WriteLine
();
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
$"Query is not complete, Error
{
TDengine
.
ErrorNo
(
res
)}
{
TDengine
.
Error
(
res
)}
"
);
}
// exit
// Free result after use
TDengine
.
FreeResult
(
res
);
}
finally
{
TDengine
.
Close
(
conn
);
TDengine
.
Cleanup
();
}
}
static
IntPtr
GetConnection
()
{
...
...
@@ -62,8 +61,7 @@ namespace TDengineExample
var
conn
=
TDengine
.
Connect
(
host
,
username
,
password
,
dbname
,
port
);
if
(
conn
==
IntPtr
.
Zero
)
{
Console
.
WriteLine
(
"Connect to TDengine failed"
);
System
.
Environment
.
Exit
(
0
);
throw
new
Exception
(
"Connect to TDengine failed"
);
}
else
{
...
...
docs/examples/csharp/query.csproj
→
docs/examples/csharp/query
/query
.csproj
浏览文件 @
0e5b0e59
...
...
@@ -9,7 +9,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TDengine.Connector" Version="3.0.
0
" />
<PackageReference Include="TDengine.Connector" Version="3.0.
1
" />
</ItemGroup>
</Project>
docs/examples/csharp/
SQLInsertExample
.cs
→
docs/examples/csharp/
sqlInsert/Program
.cs
浏览文件 @
0e5b0e59
...
...
@@ -9,6 +9,8 @@ namespace TDengineExample
static
void
Main
()
{
IntPtr
conn
=
GetConnection
();
try
{
IntPtr
res
=
TDengine
.
Query
(
conn
,
"CREATE DATABASE power"
);
CheckRes
(
conn
,
res
,
"failed to create database"
);
res
=
TDengine
.
Query
(
conn
,
"USE power"
);
...
...
@@ -24,7 +26,12 @@ namespace TDengineExample
int
affectedRows
=
TDengine
.
AffectRows
(
res
);
Console
.
WriteLine
(
"affectedRows "
+
affectedRows
);
TDengine
.
FreeResult
(
res
);
ExitProgram
(
conn
,
0
);
}
finally
{
TDengine
.
Close
(
conn
);
}
}
static
IntPtr
GetConnection
()
...
...
@@ -37,8 +44,7 @@ namespace TDengineExample
var
conn
=
TDengine
.
Connect
(
host
,
username
,
password
,
dbname
,
port
);
if
(
conn
==
IntPtr
.
Zero
)
{
Console
.
WriteLine
(
"Connect to TDengine failed"
);
Environment
.
Exit
(
0
);
throw
new
Exception
(
"Connect to TDengine failed"
);
}
else
{
...
...
@@ -51,17 +57,10 @@ namespace TDengineExample
{
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
Write
(
errorMsg
+
" since: "
+
TDengine
.
Error
(
res
));
ExitProgram
(
conn
,
1
);
throw
new
Exception
(
$"
{
errorMsg
}
since:
{
TDengine
.
Error
(
res
)}
"
);
}
}
static
void
ExitProgram
(
IntPtr
conn
,
int
exitCode
)
{
TDengine
.
Close
(
conn
);
TDengine
.
Cleanup
();
Environment
.
Exit
(
exitCode
);
}
}
}
...
...
docs/examples/csharp/sqlinsert.csproj
→
docs/examples/csharp/sql
Insert/sql
insert.csproj
浏览文件 @
0e5b0e59
文件已移动
docs/examples/csharp/
StmtInsertExample
.cs
→
docs/examples/csharp/
stmtInsert/Program
.cs
浏览文件 @
0e5b0e59
...
...
@@ -9,19 +9,20 @@ namespace TDengineExample
static
void
Main
()
{
conn
=
GetConnection
();
try
{
PrepareSTable
();
// 1. init and prepare
stmt
=
TDengine
.
StmtInit
(
conn
);
if
(
stmt
==
IntPtr
.
Zero
)
{
Console
.
WriteLine
(
"failed to init stmt, "
+
TDengine
.
Error
(
stmt
));
ExitProgram
();
throw
new
Exception
(
"failed to init stmt."
);
}
int
res
=
TDengine
.
StmtPrepare
(
stmt
,
"INSERT INTO ? USING meters TAGS(?, ?) VALUES(?, ?, ?, ?)"
);
CheckStmtRes
(
res
,
"failed to prepare stmt"
);
// 2. bind table name and tags
TAOS_MULTI_BIND
[]
tags
=
new
TAOS_MULTI_BIND
[
2
]
{
TaosMultiBind
.
MultiBindBinary
(
new
string
[]{
"California.SanFrancisco"
}),
TaosMultiBind
.
MultiBindInt
(
new
int
?[]
{
2
})
};
TAOS_MULTI_BIND
[]
tags
=
new
TAOS_MULTI_BIND
[
2
]
{
TaosMultiBind
.
MultiBindBinary
(
new
string
[]
{
"California.SanFrancisco"
}),
TaosMultiBind
.
MultiBindInt
(
new
int
?[]
{
2
})
};
res
=
TDengine
.
StmtSetTbnameTags
(
stmt
,
"d1001"
,
tags
);
CheckStmtRes
(
res
,
"failed to bind table name and tags"
);
...
...
@@ -46,8 +47,12 @@ namespace TDengineExample
// 6. free
TaosMultiBind
.
FreeTaosBind
(
tags
);
TaosMultiBind
.
FreeTaosBind
(
values
);
}
finally
{
TDengine
.
Close
(
conn
);
TDengine
.
Cleanup
();
}
}
static
IntPtr
GetConnection
()
...
...
@@ -60,8 +65,7 @@ namespace TDengineExample
var
conn
=
TDengine
.
Connect
(
host
,
username
,
password
,
dbname
,
port
);
if
(
conn
==
IntPtr
.
Zero
)
{
Console
.
WriteLine
(
"Connect to TDengine failed"
);
Environment
.
Exit
(
0
);
throw
new
Exception
(
"Connect to TDengine failed"
);
}
else
{
...
...
@@ -70,8 +74,6 @@ namespace TDengineExample
return
conn
;
}
static
void
PrepareSTable
()
{
IntPtr
res
=
TDengine
.
Query
(
conn
,
"CREATE DATABASE power"
);
...
...
@@ -90,9 +92,8 @@ namespace TDengineExample
int
code
=
TDengine
.
StmtClose
(
stmt
);
if
(
code
!=
0
)
{
Console
.
WriteLine
(
$"falied to close stmt,
{
code
}
reason:
{
TDengine
.
StmtErrorStr
(
stmt
)}
"
);
throw
new
Exception
(
$"falied to close stmt,
{
code
}
reason:
{
TDengine
.
StmtErrorStr
(
stmt
)}
"
);
}
ExitProgram
();
}
}
...
...
@@ -100,16 +101,9 @@ namespace TDengineExample
{
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
Console
.
WriteLine
(
errorMsg
+
" since:"
+
TDengine
.
Error
(
res
));
ExitProgram
();
throw
new
Exception
(
errorMsg
+
" since:"
+
TDengine
.
Error
(
res
));
}
}
static
void
ExitProgram
()
{
TDengine
.
Close
(
conn
);
TDengine
.
Cleanup
();
Environment
.
Exit
(
1
);
}
}
}
docs/examples/csharp/stmtinsert.csproj
→
docs/examples/csharp/stmt
Insert/stmt
insert.csproj
浏览文件 @
0e5b0e59
文件已移动
docs/examples/csharp/
SubscribeDemo
.cs
→
docs/examples/csharp/
subscribe/Program
.cs
浏览文件 @
0e5b0e59
...
...
@@ -11,11 +11,10 @@ namespace TMQExample
{
IntPtr
conn
=
GetConnection
();
string
topic
=
"topic_example"
;
Console
.
WriteLine
(
$"create topic if not exist
{
topic
}
as select * from meters"
);
//create topic
IntPtr
res
=
TDengine
.
Query
(
conn
,
$"create topic if not exists
{
topic
}
as select * from meters"
);
if
(
res
==
IntPtr
.
Zero
)
if
(
TDengine
.
ErrorNo
(
res
)
!=
0
)
{
throw
new
Exception
(
$"create topic failed, reason:
{
TDengine
.
Error
(
res
)}
"
);
}
...
...
@@ -65,7 +64,6 @@ namespace TMQExample
List
<
string
>
topics
=
consumer
.
Subscription
();
topics
.
ForEach
(
t
=>
Console
.
WriteLine
(
"topic name:{0}"
,
t
));
// unsubscribe
consumer
.
Unsubscribe
();
...
...
@@ -73,7 +71,6 @@ namespace TMQExample
consumer
.
Close
();
TDengine
.
Close
(
conn
);
}
static
IntPtr
GetConnection
()
...
...
@@ -86,8 +83,7 @@ namespace TMQExample
var
conn
=
TDengine
.
Connect
(
host
,
username
,
password
,
dbname
,
port
);
if
(
conn
==
IntPtr
.
Zero
)
{
Console
.
WriteLine
(
"Connect to TDengine failed"
);
System
.
Environment
.
Exit
(
0
);
throw
new
Exception
(
"Connect to TDengine failed"
);
}
else
{
...
...
docs/examples/csharp/subscribe.csproj
→
docs/examples/csharp/subscribe
/subscribe
.csproj
浏览文件 @
0e5b0e59
...
...
@@ -9,7 +9,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TDengine.Connector" Version="3.0.
0
" />
<PackageReference Include="TDengine.Connector" Version="3.0.
1
" />
</ItemGroup>
</Project>
docs/examples/csharp/wsInsert/Program.cs
浏览文件 @
0e5b0e59
...
...
@@ -47,7 +47,7 @@ namespace Examples
}
else
{
Console
.
WriteLine
(
"{0} success affect {2} rows, cost {1} nanoseconds"
,
desc
,
LibTaosWS
.
WSTakeTiming
(
wsRes
),
LibTaosWS
.
WSAffectRows
(
wsRes
));
Console
.
WriteLine
(
"{0} success affect {2} rows, cost {1} nanoseconds"
,
desc
,
LibTaosWS
.
WSTakeTiming
(
wsRes
),
LibTaosWS
.
WSAffectRows
(
wsRes
));
}
}
}
...
...
docs/examples/csharp/wsQuery/Program.cs
浏览文件 @
0e5b0e59
docs/zh/07-develop/01-connect/_connect_cs.mdx
浏览文件 @
0e5b0e59
```csharp title="原生连接"
{{#include docs/examples/csharp/
ConnectExample
.cs}}
{{#include docs/examples/csharp/
connect/Program
.cs}}
```
```csharp title="WebSocket 连接"
...
...
docs/zh/07-develop/03-insert-data/_cs_line.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
InfluxDBLineExample
.cs}}
{{#include docs/examples/csharp/
influxdbLine/Program
.cs}}
```
docs/zh/07-develop/03-insert-data/_cs_opts_json.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
OptsJsonExample
.cs}}
{{#include docs/examples/csharp/
optsJSON/Program
.cs}}
```
docs/zh/07-develop/03-insert-data/_cs_opts_telnet.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
OptsTelnetExample
.cs}}
{{#include docs/examples/csharp/
optsTelnet/Program
.cs}}
```
docs/zh/07-develop/03-insert-data/_cs_sql.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
SQLInsertExample
.cs}}
{{#include docs/examples/csharp/
sqlInsert/Program
.cs}}
```
docs/zh/07-develop/03-insert-data/_cs_stmt.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
StmtInsertExample
.cs}}
{{#include docs/examples/csharp/
stmtInsert/Program
.cs}}
```
docs/zh/07-develop/04-query-data/_cs.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
QueryExample
.cs}}
{{#include docs/examples/csharp/
query/Program
.cs}}
```
docs/zh/07-develop/04-query-data/_cs_async.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
AsyncQueryExample
.cs}}
{{#include docs/examples/csharp/
asyncQuery/Program
.cs}}
```
docs/zh/07-develop/_sub_cs.mdx
浏览文件 @
0e5b0e59
```csharp
{{#include docs/examples/csharp/
SubscribeDemo
.cs}}
{{#include docs/examples/csharp/
subscribe/Program
.cs}}
```
\ No newline at end of file
docs/zh/08-connector/40-csharp.mdx
浏览文件 @
0e5b0e59
...
...
@@ -208,7 +208,7 @@ namespace TDengineExample
<TabItem value="native" label="原生连接">
``` csharp
{{#include docs/examples/csharp/
StmtInsertExample
.cs}}
{{#include docs/examples/csharp/
stmtInsert/Program
.cs}}
```
</TabItem>
...
...
tests/docs-examples-test/csharp.sh
浏览文件 @
0e5b0e59
...
...
@@ -6,24 +6,32 @@ pgrep taosd || taosd >> /dev/null 2>&1 &
pgrep taosadapter
||
taosadapter
>>
/dev/null 2>&1 &
cd
../../docs/examples/csharp
#dotnet run --project
connect.csproj
dotnet run
--project
connect/
connect.csproj
#
taos -s "drop database if exists power"
#dotnet run --project
sqlinsert.csproj
#dotnet run --project
query.csproj
#dotnet run --project
asyncquery.csproj
#dotnet run --project
subscribe.csproj
taos
-s
"drop database if exists power"
dotnet run
--project
sqlInsert/
sqlinsert.csproj
dotnet run
--project
query/
query.csproj
dotnet run
--project
asyncQuery/
asyncquery.csproj
dotnet run
--project
subscribe/
subscribe.csproj
#
taos -s "drop topic if exists topic_example"
#
taos -s "drop database if exists power"
#dotnet run --project
stmtinsert.csproj
taos
-s
"drop topic if exists topic_example"
taos
-s
"drop database if exists power"
dotnet run
--project
stmtInsert/
stmtinsert.csproj
#
taos -s "drop database if exists test"
#dotnet run --project
influxdbline.csproj
taos
-s
"drop database if exists test"
dotnet run
--project
influxdbLine/
influxdbline.csproj
#
taos -s "drop database if exists test"
#dotnet run --project
optstelnet.csproj
taos
-s
"drop database if exists test"
dotnet run
--project
optsTelnet/
optstelnet.csproj
#taos -s "drop database if exists test"
#dotnet run --project optsjson.csproji
echo
"uncomment temporily"
taos
-s
"drop database if exists test"
dotnet run
--project
optsJSON/optsJSON.csproj
taos
-s
"create database if exists test"
dotnet run
--project
wsConnect/wsConnect.csproj
dotnet run
--project
wsInsert/wsInsert.csproj
dotnet run
--project
wsStmt/wsStmt.csproj
dotnet run
--project
wsQuery/wsQuery.csproj
taos
-s
"drop database if exists test"
taos
-s
"drop database if exists power"
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录