@@ -1587,22 +1587,28 @@ def _extra_engine_config(self) -> t.Dict[str, t.Any]:
15871587 return {"catalog_support" : CatalogSupport .SINGLE_CATALOG_ONLY }
15881588
15891589
1590- class FabricWarehouseConnectionConfig (MSSQLConnectionConfig ):
1590+ class FabricConnectionConfig (MSSQLConnectionConfig ):
15911591 """
1592- Fabric Warehouse Connection Configuration. Inherits most settings from MSSQLConnectionConfig.
1592+ Fabric Connection Configuration.
1593+
1594+ Inherits most settings from MSSQLConnectionConfig and sets the type to 'fabric'.
1595+ It is recommended to use the 'pyodbc' driver for Fabric.
15931596 """
15941597
1595- type_ : t .Literal ["fabric_warehouse " ] = Field (alias = "type" , default = "fabric_warehouse" ) # type: ignore
1598+ type_ : t .Literal ["fabric " ] = Field (alias = "type" , default = "fabric" )
15961599 autocommit : t .Optional [bool ] = True
15971600
15981601 @property
15991602 def _engine_adapter (self ) -> t .Type [EngineAdapter ]:
1600- from sqlmesh .core .engine_adapter .fabric_warehouse import FabricWarehouseAdapter
1603+ # This is the crucial link to the adapter you already created.
1604+ from sqlmesh .core .engine_adapter .fabric import FabricAdapter
16011605
1602- return FabricWarehouseAdapter
1606+ return FabricAdapter
16031607
16041608 @property
16051609 def _extra_engine_config (self ) -> t .Dict [str , t .Any ]:
1610+ # This ensures the 'database' name from the config is passed
1611+ # to the FabricAdapter's constructor.
16061612 return {
16071613 "database" : self .database ,
16081614 "catalog_support" : CatalogSupport .REQUIRES_SET_CATALOG ,
0 commit comments