- Name: CockroachDB
- Category: Database
Configuration
Configu needs to be authorized to access your CockroachDB database. Configu utilizes TypeORM under the hood to establish a connection with the database using data source options you need to supply.Usage
.configu
store declaration
To use the CockroachDBConfigStore
with Configu, declare it in the .configu
file as shown below:
CLI Examples
Upsert command
Eval and export commands
Common Errors and Solutions
-
Connection Timeout Troubleshooting
- Solution: Increase the
connectTimeout
oracquireTimeout
in the configuration options to handle long-running connection setups. Ensure the database is accessible.
- Solution: Increase the
-
Authentication Failures
- Solution: Verify the provided
username
andpassword
, and confirm the user has access to the specified database. Use a CockroachDB client to check credentials.
- Solution: Verify the provided
-
SSL Certificate Issues
- Solution: Ensure the correct SSL certificate paths are provided if
ssl
is enabled. Verify that the certificates match the CockroachDB server configuration.
- Solution: Ensure the correct SSL certificate paths are provided if
-
Database Permissions Issues
- Solution: Make sure the database user has
READ
andWRITE
permissions for the specified table. Use the following SQL command to grant permissions:
- Solution: Make sure the database user has
References
- Integration documentation: CockroachDB Documentation
- TypeORM documentation: https://typeorm.io