MCPcopy
hub / github.com/dosco/graphjin / finalizeAllDatabases

Method finalizeAllDatabases

core/init_multidb.go:193–200  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

191// This must be called after initResolvers() which may add remote tables to the
192// primary database's dbinfo.
193func (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.
203func (gj *graphjinEngine) finalizeDatabaseSchema(ctx *dbContext) error {

Callers 1

newGraphJinMethod · 0.95

Calls 1

Tested by

no test coverage detected