mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-29 02:55:15 +00:00
12 lines
306 B
Python
12 lines
306 B
Python
from datahub.emitter.mcp_builder import DatabaseKey
|
|
from datahub.sdk import Container, DataHubClient
|
|
|
|
client = DataHubClient.from_env()
|
|
|
|
container = Container(
|
|
container_key=DatabaseKey(platform="snowflake", database="my_database"),
|
|
display_name="MY_DATABASE",
|
|
)
|
|
|
|
client.entities.upsert(container)
|