dremio-odbc-cubejs-driver

0.31.69 • Public • Published

cube.js dremio odbc driver

Usage

  • cube.js
const { DremioDriver, DremioQuery } = require("dremio-odbc-cubejs-driver")
module.exports = {
    dialectFactory: (dataSource) => {
        return DremioQuery
    },
    dbType: ({ dataSource } = {}) => {
        return "dremio-odbc"
    },
    driverFactory: ({ dataSource } = {}) => {
        const username = "xxxx";
        const password = "xxxxx"
        const host = "xxxxx"
        const port = 32010
        const ssl = false
        const database = "xxxxxx"
        # this use mac odbc path ,you may need change it 
        const connectionConfig = {
            connectionString: `DRIVER=/Library/Dremio/ODBC/lib/libarrow-flight-sql-odbc.dylib;Host=${host};ConnectionType=Direct;Schema=${database};Port=${port};useEncryption=${ssl};UID=${username};PWD=${password}`,
            connectionTimeout: 10,
            loginTimeout: 10,
        }
        return new DremioDriver(connectionConfig)
    }
};

Readme

Keywords

none

Package Sidebar

Install

npm i dremio-odbc-cubejs-driver

Weekly Downloads

0

Version

0.31.69

License

Apache-2.0

Unpacked Size

6.73 kB

Total Files

7

Last publish

Collaborators

  • dalongrong