snowflake.core.artifact_repository¶

Manages Snowflake artifact repository.

Example

>>> new_artifact_repository = ArtifactRepository(
...     name="my_artifact_repo", type="PIP", api_integration="my_api_integration"
... )
>>> artifact_repositories = root.databases["MYDB"].schemas["MYSCHEMA"].artifact_repositories
>>> my_artifact_repo = artifact_repositories.create(new_artifact_repository)
>>> my_artifact_repo_snapshot = my_artifact_repo.fetch()
>>> ar_data = artifact_repositories.iter(like="%my")
>>> an_existing_repo = artifact_repositories["an_existing_repo"]
>>> an_existing_repo.drop()
Copy

Refer to snowflake.core.Root to create the root.

Classes

ArtifactRepository(*, name, type[, comment, ...])

A model object representing the ArtifactRepository resource.

ArtifactRepositoryCollection(schema)

Represents the collection operations on the Snowflake artifact repository resource.

ArtifactRepositoryResource(name, ...)

Represents a reference to a Snowflake artifact repository.