datacube.drivers.common_psql.create_schema#

datacube.drivers.common_psql.create_schema(conn, name, if_exists=True, owner=None)[source]#

Create a schema.

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

  • name (str) – Name of schema to create

  • if_exists (bool) – If true, ignore if schema already exists (default True)

  • owner (str | None) – Owner of new schema. If None (the default), owner will be the active role of conn.

Return type:

None