Removes and re-adds a database to the ServerContext.
(ctx context.Context, reloadDbName string, failFast bool, forceOnline bool)
| 551 | |
| 552 | // Removes and re-adds a database to the ServerContext. |
| 553 | func (sc *ServerContext) _reloadDatabase(ctx context.Context, reloadDbName string, failFast bool, forceOnline bool) (*db.DatabaseContext, error) { |
| 554 | sc._unloadDatabase(ctx, reloadDbName) |
| 555 | config := sc._dbConfigs[reloadDbName] |
| 556 | return sc._getOrAddDatabaseFromConfig(ctx, config.DatabaseConfig, getOrAddDatabaseConfigOptions{ |
| 557 | useExisting: true, |
| 558 | failFast: failFast, |
| 559 | forceOnline: forceOnline, |
| 560 | }) |
| 561 | } |
| 562 | |
| 563 | // Removes and re-adds a database to the ServerContext. |
| 564 | func (sc *ServerContext) ReloadDatabase(ctx context.Context, reloadDbName string, forceOnline bool) (*db.DatabaseContext, error) { |
no test coverage detected