UNPKG

cube-msfabric-driver

Version:

Cube.js MS Fabric Database Driver using msnodesqlv8

38 lines (27 loc) 886 B
# Cube-Fabric-Driver The driver for Microsoft Fabric ## Required Microsoft ODBC Driver for SQL Server (version 18 or higher to use Service Principal) [Download link](https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server) ## Installation Using npm: ```shell $ npm i cube-msfabric-driver ``` In Cube.js: ```js // Load the driver. const { MSFabricDriver } = require("cube-msfabric-driver"); module.exports = { dialectFactory: MSFabricDriver.dialectClass, // use your custom query builder driverFactory: async () => { const connectionString = "INPUT_YOUR_CONNECTION_STRING"; return new MSFabricDriver({ connectionString, }); }, }; ``` See the [package source](https://github.com/ramsoft-inc/CubeFabricDriver) for more details. ## Support Tested in Cube Community 1.3 & Node.js 22.<br>