GetRootObject returns the root object that matches the given name.
(ctx context.Context, root objinterface.RootValue, tName doltdb.TableName)
| 209 | |
| 210 | // GetRootObject returns the root object that matches the given name. |
| 211 | func GetRootObject(ctx context.Context, root objinterface.RootValue, tName doltdb.TableName) (objinterface.RootObject, bool, error) { |
| 212 | _, rawID, objID, err := ResolveName(ctx, root, tName) |
| 213 | if err != nil || objID == objinterface.RootObjectID_None { |
| 214 | return nil, false, err |
| 215 | } |
| 216 | coll, _ := globalCollections[objID].LoadCollection(ctx, root) |
| 217 | return coll.GetRootObject(ctx, rawID) |
| 218 | } |
| 219 | |
| 220 | // GetRootObjectConflicts returns the conflict root object that matches the given name. |
| 221 | func GetRootObjectConflicts(ctx context.Context, root objinterface.RootValue, tName doltdb.TableName) (conflicts.Conflict, bool, error) { |
no test coverage detected