Skip to content

PostgresCdfConfig

laktory.models.resources.databricks.PostgresCdfConfig ¤

Bases: PostgresCdfConfigBase

Lakebase Autoscaling (Postgres) change data feed configuration

Replicates the tables of a Postgres schema of a database into a Unity Catalog schema. Can also be declared in the cdf_configs of a PostgresDatabase.

Examples:

import io

from laktory import models

cdf_yaml = '''
parent: projects/app/branches/production/databases/app-db
postgres_schema: public
catalog: dev
schema: app_replicated
'''
cdf = models.resources.databricks.PostgresCdfConfig.model_validate_yaml(
    io.StringIO(cdf_yaml)
)
References
BASE DESCRIPTION
catalog

The Unity Catalog catalog that replicated tables are written into. Set at creation; the CdfConfig is immutable

TYPE: str | VariableType

cdf_config_id

The user-specified id; equals the final segment of name. Defaults to the Postgres schema name for configs without an explicit id

TYPE: str | None | VariableType DEFAULT: None

parent

Database replicated from (projects/{project_id}/branches/{branch_id}/databases/{database_id}). Set automatically when declared in the cdf_configs of a database.

TYPE: str | VariableType DEFAULT: None

postgres_schema

The Postgres schema this CdfConfig replicates from. Unique within the parent database. Set at creation; the CdfConfig is immutable

TYPE: str | VariableType

provider_config

Configure the provider for management through account provider

TYPE: PostgresCdfConfigProviderConfig | None | VariableType DEFAULT: None

schema_

The Unity Catalog schema that replicated tables are written into. Set at creation; the CdfConfig is immutable

TYPE: str | VariableType


laktory.models.resources.databricks.postgrescdfconfig.PostgresCdfConfigProviderConfig ¤

Bases: BaseModel

PARAMETER DESCRIPTION
workspace_id

Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with

TYPE: str | None | VariableType DEFAULT: None