Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or use MindsDB Cloud.
- To connect Trino to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to Trino.
Implementation
This handler is implemented usingpyhive, a collection of Python DB-API and SQLAlchemy interfaces for Presto and Hive.
The required arguments to establish a connection are as follows:
useris the database user.passwordis the database password.hostis the host name, IP address, or URL.portis the port used to make TCP/IP connection.
authis the authentication method. Currently, onlybasicis supported.http_schemetakes the value ofhttpby default. It can be set tohttpsas well.catalogis the catalog.schemais the schema name.withdefines default WITH-clause (properties) for ALL tables. This parameter is experimental and might be changed or removed in future release.