File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/cubejs-schema-compiler/src/adapter Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ const ADAPTERS = {
4040 cubestore : CubeStoreQuery ,
4141} ;
4242
43- export const queryClass = ( dbType , dialectClass ) => dialectClass || ADAPTERS [ dbType ] ;
43+ export const queryClass = ( dbType : string , dialectClass ) => dialectClass || ADAPTERS [ dbType ] ;
4444
45- export const createQuery = ( compilers , dbType , queryOptions ) => {
45+ export const createQuery = ( compilers , dbType : string , queryOptions : any ) => {
4646 if ( ! queryOptions . dialectClass && ! ADAPTERS [ dbType ] ) {
4747 return null ;
4848 }
Original file line number Diff line number Diff line change 11export class QueryCache {
2- constructor ( ) {
2+ private readonly storage : { } ;
3+
4+ public constructor ( ) {
35 this . storage = { } ;
46 }
57
68 /**
7- * @param {Array } key
8- * @param {Function } fn
99 * @returns Returns the result of executing a function (Either call a function or take a value from the cache)
1010 */
11- cache ( key , fn ) {
11+ public cache ( key : any [ ] , fn : Function ) : any {
1212 let keyHolder = this . storage ;
1313 const { length } = key ;
1414 for ( let i = 0 ; i < length - 1 ; i ++ ) {
You can’t perform that action at this time.
0 commit comments