(ctx context.Context, dbs DbConfigMap)
| 129 | } |
| 130 | |
| 131 | func (sc *ServerContext) CreateLocalDatabase(ctx context.Context, dbs DbConfigMap) error { |
| 132 | for _, dbConfig := range dbs { |
| 133 | dbc := dbConfig.ToDatabaseConfig() |
| 134 | _, err := sc._getOrAddDatabaseFromConfig(ctx, *dbc, getOrAddDatabaseConfigOptions{ |
| 135 | useExisting: false, |
| 136 | failFast: false, |
| 137 | }) |
| 138 | if err != nil { |
| 139 | return err |
| 140 | } |
| 141 | } |
| 142 | return nil |
| 143 | } |
| 144 | |
| 145 | func (sc *ServerContext) SetCpuPprofFile(file *os.File) { |
| 146 | sc.cpuPprofFileMutex.Lock() |
no test coverage detected