datacube.drivers.common_psql.ensure_extension#

datacube.drivers.common_psql.ensure_extension(conn, extension_name)[source]#

Ensure the database has the given extension installed (e.g. the PostGIS extension).

Parameters:
  • conn (Connection) – An SQLAlchemy connection object.

  • extension_name (str) – The extension name, e.g. “postgis”

Return type:

None