Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or Docker Desktop.
- To connect CockroachDB to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to CockroachDB.
Implementation
CockroachDB is wire-compatible with PostgreSQL. Therefore, its implementation extends the PostgreSQL handler. The required arguments to establish a connection are as follows:- hostis the host name or IP address of the CockroachDB.
- databaseis the name of the database to connect to.
- useris the user to authenticate with the CockroachDB.
- portis the port to use when connecting.
- passwordis the password to authenticate the user.