Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or Docker Desktop.
- 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, only- basicis supported.
- http_schemetakes the value of- httpby default. It can be set to- httpsas 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.