cube-msfabric-driver
Version:
Cube.js MS Fabric Database Driver using msnodesqlv8
27 lines (26 loc) • 987 B
TypeScript
import { BaseDriver, DriverInterface } from "@cubejs-backend/base-driver";
import { MSFabricQuery } from "./MSFabricQuery";
type DatabaseStructure = Record<string, Record<string, Array<{
name: string;
type: string;
isNullable: boolean;
}>>>;
export interface MSFabricDriverConfig {
connectionString: string;
maxPoolSize?: number;
acquireTimeout?: number;
}
export declare class MSFabricDriver extends BaseDriver implements DriverInterface {
private pool;
private readonly connectionString;
private readonly maxPoolSize;
private readonly acquireTimeout;
constructor({ connectionString, maxPoolSize, acquireTimeout, }: MSFabricDriverConfig);
static dialectClass(): typeof MSFabricQuery;
testConnection(): Promise<void>;
private getConnection;
query<T = unknown>(query: string, values?: unknown[]): Promise<T[]>;
release(): Promise<void>;
tablesSchema(): Promise<DatabaseStructure>;
}
export {};