Back to Tdengine

Connect Go

docs/en/assets/resources/_connect_go.mdx

latest565 B
Original Source

Using a Unified Interface for Database Access

go
{{#include docs/examples/go/connect/cgoexample/main.go}}
go
{{#include docs/examples/go/connect/restexample/main.go}}

Using Advanced Wrappers

You can also use the af package from driver-go to establish connections. This module encapsulates advanced features of TDengine, such as parameter binding, subscription, etc.

go
{{#include docs/examples/go/connect/afconn/main.go}}