datacube.index.index_connect

datacube.index.index_connect(local_config=None, application_name=None, validate_connection=True)[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 (datacube.config.LocalConfig) – Config object to use. (optional)
  • validate_connection – Validate database connection and schema immediately
Return type:

datacube.index.index.Index

Raises:

datacube.drivers.postgres._connections.IndexSetupError