LoadProcedures loads the procedures collection from the given root.
(ctx context.Context, root objinterface.RootValue)
| 83 | |
| 84 | // LoadProcedures loads the procedures collection from the given root. |
| 85 | func LoadProcedures(ctx context.Context, root objinterface.RootValue) (*Collection, error) { |
| 86 | m, ok, err := storage.GetProllyMap(ctx, root) |
| 87 | if err != nil { |
| 88 | return nil, err |
| 89 | } |
| 90 | if !ok { |
| 91 | m, err = prolly.NewEmptyAddressMap(root.NodeStore()) |
| 92 | if err != nil { |
| 93 | return nil, err |
| 94 | } |
| 95 | } |
| 96 | return NewCollection(ctx, m, root.NodeStore()) |
| 97 | } |
| 98 | |
| 99 | // ResolveNameFromObjects implements the interface objinterface.Collection. |
| 100 | func (*Collection) ResolveNameFromObjects(ctx context.Context, name doltdb.TableName, rootObjects []objinterface.RootObject) (doltdb.TableName, id.Id, error) { |
no test coverage detected