File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/cubejs-server-core/core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,9 @@ class CubejsServerCore {
171
171
constructor ( options ) {
172
172
options = options || { } ;
173
173
options = {
174
- driverFactory : ( ) => CubejsServerCore . createDriver ( options . dbType ) ,
175
- dialectFactory : ( ) => CubejsServerCore . lookupDriverClass ( options . dbType ) . dialectClass &&
174
+ driverFactory : ( ) => typeof options . dbType === 'string' && CubejsServerCore . createDriver ( options . dbType ) ,
175
+ dialectFactory : ( ) => typeof options . dbType === 'string' &&
176
+ CubejsServerCore . lookupDriverClass ( options . dbType ) . dialectClass &&
176
177
CubejsServerCore . lookupDriverClass ( options . dbType ) . dialectClass ( ) ,
177
178
externalDriverFactory : process . env . CUBEJS_EXT_DB_TYPE && (
178
179
( ) => CubejsServerCore . lookupDriverClass ( process . env . CUBEJS_DB_EXT_TYPE ) ( {
You can’t perform that action at this time.
0 commit comments