finalizeAllDatabases runs Phase 3: schema + compiler creation for all databases. This must be called after initResolvers() which may add remote tables to the primary database's dbinfo.
()
| 191 | // This must be called after initResolvers() which may add remote tables to the |
| 192 | // primary database's dbinfo. |
| 193 | func (gj *graphjinEngine) finalizeAllDatabases() error { |
| 194 | for _, ctx := range gj.databases { |
| 195 | if err := gj.finalizeDatabaseSchema(ctx); err != nil { |
| 196 | return err |
| 197 | } |
| 198 | } |
| 199 | return nil |
| 200 | } |
| 201 | |
| 202 | // finalizeDatabaseSchema creates schema and compilers for a single database. |
| 203 | func (gj *graphjinEngine) finalizeDatabaseSchema(ctx *dbContext) error { |
no test coverage detected