Implementation
This handler is implemented using thepsycopg2 library, which is a PostgreSQL adapter for the Python programming language. TimescaleDB is built on top of PostgreSQL and therefore can be accessed using the same client libraries and APIs.
The required arguments to establish a connection are as follows:
*host is the the host name or IP address of the TimescaleDB server.
*port is the port to use when connecting with the TimescaleDB server.
*database is the database name to use when connecting with the TimescaleDB server.
*user is the user to authenticate the user with the TimescaleDB server.
*password is the password to authenticate the user with the TimescaleDB server.
If you installed MindsDB locally via pip, you need to install all handler dependencies manually. To do so, go to the handler’s folder (mindsdb/integrations/handlers/timescaledb_handler) and run this command:
pip install -r requirements.txt.