Skip to content

Schema

laktory.models.resources.databricks.Schema ¤

Bases: BaseModel, PulumiResource, TerraformResource

A schema (also called a database) is the second layer of Unity Catalog’s three-level namespace. A schema organizes tables and views.

ATTRIBUTE DESCRIPTION
catalog_name

Name of the catalog storing the schema

TYPE: Union[str, None]

comment

Text description of the catalog

TYPE: Union[str, None]

force_destroy

If True catalog can be deleted, even when not empty

TYPE: bool

grants

List of grants operating on the schema

TYPE: list[SchemaGrant]

isolation_mode

Whether the catalog is accessible from all workspaces or a specific set of workspaces. Can be ISOLATED or OPEN. Setting the catalog to ISOLATED will automatically allow access from the current workspace.

name

Name of the catalog

TYPE: str

tables

List of tables stored in the schema

TYPE: list[Table]

volumes

List of volumes stored in the schema

TYPE: list[Volume]

Examples:

from laktory import models

schema = models.resources.databricks.Schema(
    catalog_name="dev",
    name="engineering",
    grants=[{"principal": "domain-engineering", "privileges": ["SELECT"]}],
)
References

Attributes¤

parent_full_name property ¤

parent_full_name

Catalog full name {catalog_name}

full_name property ¤

full_name

Schema full name {catalog_name}.{schema_name}

resource_key property ¤

resource_key

Schema full name (catalog.schema)

additional_core_resources property ¤

additional_core_resources
  • schema grants
  • tables
  • volumes