Skip to main content

postgres_synced_tables

Creates, updates, deletes, gets or lists a postgres_synced_tables resource.

Overview

Namepostgres_synced_tables
TypeResource
Iddatabricks_workspace.postgres.postgres_synced_tables

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertsynced_table_id, deployment_name, synced_tableCreate a Synced Table.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
synced_table_idstringThe ID to use for the Synced Table. This becomes the final component of the SyncedTable's resource name. ID is required and is the synced table name, containing (catalog, schema, table) tuple. Elements of the tuple are the UC entity names. Example: "{catalog}.{schema}.{table}" synced_table_id represents both of the following: 1. An online VIEW virtual table in the Unity Catalog accessible via the Lakehouse Federation. 2. Postgres table named "{table}" in schema "{schema}" in the connected Postgres database

INSERT examples

Create a Synced Table.

INSERT INTO databricks_workspace.postgres.postgres_synced_tables (
synced_table,
synced_table_id,
deployment_name
)
SELECT
'{{ synced_table }}' /* required */,
'{{ synced_table_id }}',
'{{ deployment_name }}'
;