File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/cubejs-server-core/core Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,16 @@ class CubejsServerCore {
174
174
driverFactory : ( ) => CubejsServerCore . createDriver ( options . dbType ) ,
175
175
dialectFactory : ( ) => CubejsServerCore . lookupDriverClass ( options . dbType ) . dialectClass &&
176
176
CubejsServerCore . lookupDriverClass ( options . dbType ) . dialectClass ( ) ,
177
+ externalDriverFactory : process . env . CUBEJS_EXT_DB_TYPE && (
178
+ ( ) => CubejsServerCore . lookupDriverClass ( process . env . CUBEJS_DB_EXT_TYPE ) ( {
179
+ host : process . env . CUBEJS_EXT_DB_HOST ,
180
+ database : process . env . CUBEJS_EXT_DB_NAME ,
181
+ port : process . env . CUBEJS_EXT_DB_PORT ,
182
+ user : process . env . CUBEJS_EXT_DB_USER ,
183
+ password : process . env . CUBEJS_EXT_DB_PASS ,
184
+ } )
185
+ ) ,
186
+ externalDbType : process . env . CUBEJS_EXT_DB_TYPE ,
177
187
apiSecret : process . env . CUBEJS_API_SECRET ,
178
188
dbType : process . env . CUBEJS_DB_TYPE ,
179
189
devServer : process . env . NODE_ENV !== 'production' ,
You can’t perform that action at this time.
0 commit comments