File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/cubejs-server-core/src/core Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ const schemaOptions = Joi.object().keys({
147147 canSwitchSqlUser : Joi . func ( ) ,
148148 sqlUser : Joi . string ( ) ,
149149 sqlPassword : Joi . string ( ) ,
150+ semanticLayerSync : Joi . func ( ) ,
150151 // Additional system flags
151152 serverless : Joi . boolean ( ) ,
152153 allowNodeRequire : Joi . boolean ( ) ,
Original file line number Diff line number Diff line change @@ -159,6 +159,12 @@ export type ExternalDialectFactoryFn = (context: RequestContext) => BaseQuery;
159159
160160export type LoggerFn = ( msg : string , params : Record < string , any > ) => void ;
161161
162+ export type BiToolSyncConfig = {
163+ type : string ;
164+ active ?: boolean ;
165+ config : Record < string , any > ;
166+ } ;
167+
162168export interface CreateOptions {
163169 dbType ?: DatabaseType | DbTypeFn ;
164170 externalDbType ?: DatabaseType | ExternalDbTypeFn ;
@@ -208,6 +214,7 @@ export interface CreateOptions {
208214 // Internal flag, that we use to detect serverless env
209215 serverless ?: boolean ;
210216 allowNodeRequire ?: boolean ;
217+ semanticLayerSync ?: ( ) => Promise < BiToolSyncConfig [ ] > | BiToolSyncConfig [ ] ;
211218}
212219
213220export interface DriverDecoratedOptions extends CreateOptions {
You can’t perform that action at this time.
0 commit comments