@ -60,14 +60,15 @@ BI.provider('dec.connection.provider.datebase', function() {
this . registerDatabaseType = ( config : any ) = > {
this . registerDatabaseType = ( config : any ) = > {
BI . config ( CONSTANT_PLUGIN_TYPES , connections = > BI . concat ( connections , config ) ) ;
BI . config ( CONSTANT_PLUGIN_TYPES , connections = > BI . concat ( connections , config ) ) ;
} ;
} ;
this . registerJdbcDatabase = ( config : any , resolve? : Function ) = > {
this . registerJdbcDatabase = ( config : any , resolve? : Function ) = > {
BI . config ( CONSTANT_PLUGIN_TYPES , connections = > BI . concat ( connections , { . . . config , type : 'jdbc' } ) ) ;
BI . config ( CONSTANT_PLUGIN_TYPES , connections = > BI . concat ( connections , { . . . config , type : 'jdbc' } ) ) ;
BI . isFunction ( resolve ) && ( this . resolves [ config . databaseType ] = resolve ) ;
BI . isFunction ( resolve ) && ( this . resolves [ config . databaseType ] = resolve ) ;
} ;
} ;
this . $get = ( ) = > BI . inherit ( BI . OB , {
this . $get = ( ) = > BI . inherit ( BI . OB , {
getJdbcResolveByType : ( type : string ) = > this . resolves [ type ] || jdbcResolve ,
getJdbcResolveByType : ( type : string ) = > this . resolves [ type ] || jdbcResolve ,
customDatabaseType : BI.Constants.getConstant ( CONSTANT_PLUGIN_TYPES ) ,
} ) ;
} ) ;
} ) ;
} ) ;