fabric_class Module
This module contains the classes that are used to connect to resources like Warehouses, SQL databases,
and Lakehouses. You can use these classes by importing them from the fabric.functions module
(e.g. from fabric.functions import FabricSqlConnection
).
Classes
FabricLakehouseClient |
This class is used to connect to Lakehouse resources. You can use this class to connect to both SQL and Files endpoints. A User Data Function with a parameter of this type must be decorated with connection (see the example under Remarks). Don't worry about using the constructor to create an instance of this class. Fabric will automatically create it for you (as long as you follow the steps within Remarks). |
FabricSqlConnection |
This class is used to connect to resources that supply SQL connection strings. A User Data Function with a parameter of this type must be decorated with connection (see the example under Remarks). Don't worry about using the constructor to create an instance of this class. Fabric will automatically create it for you (as long as you follow the steps within Remarks). |
UserDataFunctionContext |
This class is used to be able to access certain metadata about a function invocation. A User Data Function with a parameter of this type must be decorated with context (see the example under Remarks). Don't worry about using the constructor to create an instance of this class. Fabric will automatically create it for you (as long as you follow the steps within Remarks). |