AddDatabaseFromConfigFailFast adds a database to the ServerContext given its configuration and fails fast. If an existing config is found for the name, returns an error.
(nonContextStruct base.NonCancellableContext, config DatabaseConfig)
| 1623 | // AddDatabaseFromConfigFailFast adds a database to the ServerContext given its configuration and fails fast. |
| 1624 | // If an existing config is found for the name, returns an error. |
| 1625 | func (sc *ServerContext) AddDatabaseFromConfigFailFast(nonContextStruct base.NonCancellableContext, config DatabaseConfig) (*db.DatabaseContext, error) { |
| 1626 | failFast := true |
| 1627 | return sc.getOrAddDatabaseFromConfig(nonContextStruct.Ctx, config, getOrAddDatabaseConfigOptions{useExisting: false, failFast: failFast}) |
| 1628 | } |
| 1629 | |
| 1630 | func (sc *ServerContext) processEventHandlersForEvent(ctx context.Context, events []*EventConfig, eventType db.EventType, dbcontext *db.DatabaseContext) error { |
| 1631 |
no test coverage detected