Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or use MindsDB Cloud.
- 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:host
is the host name or IP address of the CockroachDB.database
is the name of the database to connect to.user
is the user to authenticate with the CockroachDB.port
is the port to use when connecting.password
is the password to authenticate the user.