Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
d2eb1804
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d2eb1804
编写于
5月 29, 2022
作者:
C
Chait Diwadkar
提交者:
GitHub
5月 29, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs:cdiwadkar16-patch-4-4 - minor changes
上级
177c81e5
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
4 addition
and
4 deletion
+4
-4
docs-en/14-reference/03-connector/go.mdx
docs-en/14-reference/03-connector/go.mdx
+4
-4
未找到文件。
docs-en/14-reference/03-connector/go.mdx
浏览文件 @
d2eb1804
...
...
@@ -15,9 +15,9 @@ import GoOpenTSDBTelnet from "../../07-develop/03-insert-data/_go_opts_telnet.md
import
GoOpenTSDBJson
from
"../../07-develop/03-insert-data/_go_opts_json.mdx"
import
GoQuery
from
"../../07-develop/04-query-data/_go.mdx"
`
driver
-
go
`
is
the
official
Go
language
connector
for
TDengine
,
which
implements
the
interface
to
the
Go
language
[
database
/
sql
](
https
://
golang
.
org
/
pkg
/
database
/
sql
/)
package
.
Go
developers
can
use
it
to
develop
applications
that
access
TDengine
cluster
data
.
`
driver
-
go
`
is
the
official
Go
language
connector
for
TDengine
.
It
implements
the
[
database
/
sql
](
https
://
golang
.
org
/
pkg
/
database
/
sql
/)
package
,
the
generic
Go
language
interface
to
SQL
databases
.
Go
developers
can
use
it
to
develop
applications
that
access
TDengine
cluster
data
.
`
driver
-
go
`
provides
two
ways
to
establish
connections
.
One
is
**
native
connection
**,
which
connects
to
TDengine
instances
natively
through
the
TDengine
client
driver
(
taosc
),
supporting
data
writing
,
querying
,
subscriptions
,
schemaless
writing
,
and
bind
interface
.
The
other
is
the
**
REST
connection
**,
which
connects
to
TDengine
instances
via
the
REST
interface
provided
by
taosAdapter
.
The
set
of
features
implemented
by
the
REST
connection
differs
slightly
from
the
native
connection
.
`
driver
-
go
`
provides
two
ways
to
establish
connections
.
One
is
**
native
connection
**,
which
connects
to
TDengine
instances
natively
through
the
TDengine
client
driver
(
taosc
),
supporting
data
writing
,
querying
,
subscriptions
,
schemaless
writing
,
and
bind
interface
.
The
other
is
the
**
REST
connection
**,
which
connects
to
TDengine
instances
via
the
REST
interface
provided
by
taosAdapter
.
The
set
of
features
implemented
by
the
REST
connection
differs
slightly
from
th
ose
implemented
by
th
e
native
connection
.
This
article
describes
how
to
install
`
driver
-
go
`
and
connect
to
TDengine
clusters
and
perform
basic
operations
such
as
data
query
and
data
writing
through
`
driver
-
go
`.
...
...
@@ -213,7 +213,7 @@ func main() {
Since
the
REST
interface
is
stateless
,
the
`
use
db
`
syntax
will
not
work
.
You
need
to
put
the
db
name
into
the
SQL
command
,
e
.
g
.
`
create
table
if
not
exists
tb1
(
ts
timestamp
,
a
int
)`
to
`
create
table
if
not
exists
test
.
tb1
(
ts
timestamp
,
a
int
)`
otherwise
it
will
report
the
error
`[
0x217
]
Database
not
specified
or
available
`.
You
can
also
put
the
db
name
in
the
DSN
by
changing
`
root
:
taosdata
@
http
(
localhost
:
6041
)/`
to
`
root
:
taosdata
@
http
(
localhost
:
6041
)/
test
`.
This
method
is
supported
by
taosAdapter
in
TDengine
2.4.0.5
.
is
supported
since
TDengine
2.4.0.5
.
Executing
the
`
create
database
`
statement
when
the
specified
db
does
not
exist
will
not
report
an
error
while
executing
other
queries
or
writing
against
that
db
will
report
an
error
.
You
can
also
put
the
db
name
in
the
DSN
by
changing
`
root
:
taosdata
@
http
(
localhost
:
6041
)/`
to
`
root
:
taosdata
@
http
(
localhost
:
6041
)/
test
`.
This
method
is
supported
by
taosAdapter
since
TDengine
2.4.0.5
.
Executing
the
`
create
database
`
statement
when
the
specified
db
does
not
exist
will
not
report
an
error
while
executing
other
queries
or
writing
against
that
db
will
report
an
error
.
The
complete
example
is
as
follows
.
...
...
@@ -289,7 +289,7 @@ func main() {
6.
`
readBufferSize
`
parameter
has
no
significant
effect
after
being
increased
I
f
you
increase
`
readBufferSize
`
will
reduce
the
number
of
`
syscall
`
calls
when
fetching
results
.
If
the
query
result
is
smaller
,
modifying
this
parameter
will
not
improve
significantly
.
If
you
increase
the
parameter
value
too
much
,
the
bottleneck
will
be
parsing
JSON
data
.
If
you
need
to
optimize
the
query
speed
,
you
must
adjust
the
value
according
to
the
actual
situation
to
achieve
the
best
query
result
.
I
ncreasing
`
readBufferSize
`
will
reduce
the
number
of
`
syscall
`
calls
when
fetching
results
.
If
the
query
result
is
smaller
,
modifying
this
parameter
will
not
improve
performance
significantly
.
If
you
increase
the
parameter
value
too
much
,
the
bottleneck
will
be
parsing
JSON
data
.
If
you
need
to
optimize
the
query
speed
,
you
must
adjust
the
value
based
on
the
actual
situation
to
achieve
the
best
query
performance
.
7.
`
disableCompression
`
parameter
is
set
to
`
false
`
when
the
query
efficiency
is
reduced
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录