When trying to get just the host uri of a cluster, the most straightforward option seems to be connection_params from cockroach_connection_string -- but the documentation only lists connection_params as a "map of string" without specifying its attributes. The underlying cockroach API documentation actually doesn't specify it either, you need to manually call the API to get the parameters.
Can we specify the connection_params attributes in the documentation? From calling the cockroach API manually, I got Database, Host, and Port.
When trying to get just the host uri of a cluster, the most straightforward option seems to be
connection_params
fromcockroach_connection_string
-- but the documentation only listsconnection_params
as a "map of string" without specifying its attributes. The underlying cockroach API documentation actually doesn't specify it either, you need to manually call the API to get the parameters. Can we specify theconnection_params
attributes in the documentation? From calling the cockroach API manually, I gotDatabase
,Host
, andPort
.