datacube.index.index_connect

datacube.index.index_connect(local_config: datacube.config.LocalConfig = None, application_name: str = None, validate_connection: bool = True) → datacube.index.index.Index[source]

Create a Data Cube Index that can connect to a PostgreSQL server

It contains all the required connection parameters, but doesn’t actually check that the server is available.

Parameters:
  • application_name – A short, alphanumeric name to identify this application.
  • local_config – Config object to use. (optional)
  • validate_connection – Validate database connection and schema immediately
Raises:

datacube.index.Exceptions.IndexSetupError