Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or use MindsDB Cloud.
- To connect TDengine to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to TDengine.
Implementation
This handler is implemented usingtaos/taosrest
, a Python library that allows you to use Python code to run SQL commands on the TDEngine server.
The required arguments to establish a connection are as follows:
user
is the username associated with the server.password
is the password to authenticate your access.url
is the URL to the TDEngine server. For local server, the URL islocalhost:6041
by default.token
is the unique token provided while using TDEngine Cloud.database
is the database name to be connected.
Usage
In order to make use of this handler and connect to the TDEngine database in MindsDB, the following syntax can be used:You can specify
token
instead of user
and password
while using TDEngine.