Skip to content

Commit 0dc42fd

Browse files
committed
chore(server-core): More precise types
1 parent d8b8deb commit 0dc42fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/cubejs-server-core/src/core/CompilerApi.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { disposedProxy } from '@cubejs-backend/shared';
2727
import type { SchemaFileRepository } from '@cubejs-backend/shared';
2828
import { NormalizedQuery, MemberExpression } from '@cubejs-backend/api-gateway';
2929
import { DbTypeAsyncFn, DialectClassFn, LoggerFn } from './types';
30+
import { DriverCapabilities } from '@cubejs-backend/base-driver';
3031

3132
type Context = any;
3233

@@ -78,6 +79,7 @@ export interface SqlResult {
7879
export interface DataSourceInfo {
7980
dataSource: string;
8081
dbType: string;
82+
driverCapabilities?: DriverCapabilities;
8183
}
8284

8385
export class CompilerApi {
@@ -868,7 +870,8 @@ export class CompilerApi {
868870

869871
public async dataSources(
870872
orchestratorApi: any,
871-
query?: NormalizedQuery
873+
query?: NormalizedQuery,
874+
_dataSourceFromEnvs?: string[]
872875
): Promise<{ dataSources: DataSourceInfo[] }> {
873876
const cubeNameToDataSource = await this.cubeNameToDataSource(query || { requestId: `datasources-${uuidv4()}` });
874877

0 commit comments

Comments
 (0)