LoadCollection loads the collection matching the given ID from the root.
(ctx context.Context, root objinterface.RootValue, collectionID objinterface.RootObjectID)
| 410 | |
| 411 | // LoadCollection loads the collection matching the given ID from the root. |
| 412 | func LoadCollection(ctx context.Context, root objinterface.RootValue, collectionID objinterface.RootObjectID) (objinterface.Collection, error) { |
| 413 | if globalCollections[collectionID] == nil { |
| 414 | return nil, nil |
| 415 | } |
| 416 | return globalCollections[collectionID].LoadCollection(ctx, root) |
| 417 | } |
| 418 | |
| 419 | // PutRootObject adds the given root object to the respective Collection in the root, returning the updated root. |
| 420 | func PutRootObject(ctx context.Context, root objinterface.RootValue, tName doltdb.TableName, rootObj objinterface.RootObject) (objinterface.RootValue, error) { |
no test coverage detected