TOMWrapper Class
Convenience wrapper around the TOM object model for a semantic model. Always use the connect_semantic_model function to make sure the TOM object is initialized correctly.
XMLA read/write endpoints must be enabled if setting the readonly parameter to False.
- Inheritance
-
sempy.fabric._client._tom._has.HasMixinTOMWrappersempy.fabric._client._tom._is.IsMixinTOMWrappersempy.fabric._client._tom._used_in.UsedInMixinTOMWrappersempy.fabric._client._tom._all.ListAllMixinTOMWrappersempy.fabric._client._tom._get.GetMixinTOMWrappersempy.fabric._client._tom._in.InMixinTOMWrappersempy.fabric._client._tom._show.ShowMixinTOMWrapper
Constructor
TOMWrapper(dataset: str, workspace: str, readonly: bool)
Parameters
Name | Description |
---|---|
dataset
Required
|
Name of the semantic model. |
workspace
Required
|
The Fabric workspace name. |
readonly
Required
|
Whether the connection is read-only or read/write. Setting this to False enables read/write which saves the changes made back to the server. |
Methods
close |
Close the connection to the semantic model. |
close
Close the connection to the semantic model.
close()
Attributes
dataset
The name of the semantic model.
model
The semantic model's Tabular Object Model.
workspace
The Fabric workspace name.