sempy_labs.kql_database package

Module contents

sempy_labs.kql_database.delete_kql_database(kql_database: str | UUID, workspace: str | UUID | None = None, **kwargs)

Deletes a KQL database.

This is a wrapper function for the following API: Items - Delete KQL Database.

Parameters:
  • kql_database (str | uuid.UUID) – Name or ID of the KQL database.

  • workspace (str | uuid.UUID, default=None) – The Fabric workspace name or ID. Defaults to None which resolves to the workspace of the attached lakehouse or if no lakehouse attached, resolves to the workspace of the notebook.

sempy_labs.kql_database.list_kql_databases(workspace: str | UUID | None = None) DataFrame

Shows the KQL databases within a workspace.

This is a wrapper function for the following API: Items - List KQL Databases.

Service Principal Authentication is supported (see here for examples).

Parameters:

workspace (str | uuid.UUID, default=None) – The Fabric workspace name or ID. Defaults to None which resolves to the workspace of the attached lakehouse or if no lakehouse attached, resolves to the workspace of the notebook.

Returns:

A pandas dataframe showing the KQL databases within a workspace.

Return type:

pandas.DataFrame

sempy_labs.kql_database.resolve_cluster_uri(kql_database: str | UUID, workspace: str | UUID | None = None) str