Skip to content

Commit 889ad23

Browse files
committed
rename CubestoreResultWrapper → ResultWrapper
1 parent 9b82cb3 commit 889ad23

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/cubejs-backend-native/js/CubeStoreResultWrapper.ts renamed to packages/cubejs-backend-native/js/ResultWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getCubestoreResult, ResultRow } from './index';
22

3-
export class CubeStoreResultWrapper {
3+
export class ResultWrapper {
44
private readonly proxy: any;
55

66
private cache: any;

packages/cubejs-backend-native/js/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import fs from 'fs';
33
import path from 'path';
44
import { Writable } from 'stream';
55
import type { Request as ExpressRequest } from 'express';
6-
import { CubeStoreResultWrapper } from './CubeStoreResultWrapper';
6+
import { ResultWrapper } from './ResultWrapper';
77

8-
export * from './CubeStoreResultWrapper';
8+
export * from './ResultWrapper';
99

1010
export interface BaseMeta {
1111
// postgres or mysql
@@ -363,14 +363,14 @@ export const buildSqlAndParams = (cubeEvaluator: any): String => {
363363

364364
export type ResultRow = Record<string, string>;
365365

366-
export const parseCubestoreResultMessage = async (message: ArrayBuffer): Promise<CubeStoreResultWrapper> => {
366+
export const parseCubestoreResultMessage = async (message: ArrayBuffer): Promise<ResultWrapper> => {
367367
const native = loadNative();
368368

369369
const msg = await native.parseCubestoreResultMessage(message);
370-
return new CubeStoreResultWrapper(msg);
370+
return new ResultWrapper(msg);
371371
};
372372

373-
export const getCubestoreResult = (ref: CubeStoreResultWrapper): ResultRow[] => {
373+
export const getCubestoreResult = (ref: ResultWrapper): ResultRow[] => {
374374
const native = loadNative();
375375

376376
return native.getCubestoreResult(ref);

0 commit comments

Comments
 (0)