GetConflictRootObjects implements the interface doltdb.RootValue.
(ctx context.Context)
| 323 | |
| 324 | // GetConflictRootObjects implements the interface doltdb.RootValue. |
| 325 | func (root *RootValue) GetConflictRootObjects(ctx context.Context) ([]doltdb.ConflictRootObject, error) { |
| 326 | collection, err := conflicts.LoadConflicts(ctx, root) |
| 327 | if err != nil { |
| 328 | return nil, err |
| 329 | } |
| 330 | var allConflicts []doltdb.ConflictRootObject |
| 331 | _ = collection.IterAll(ctx, func(rootObj objinterface.RootObject) (stop bool, err error) { |
| 332 | allConflicts = append(allConflicts, rootObj.(doltdb.ConflictRootObject)) |
| 333 | return false, nil |
| 334 | }) |
| 335 | return allConflicts, nil |
| 336 | } |
| 337 | |
| 338 | // GetDatabaseSchemas implements the interface doltdb.RootValue. |
| 339 | func (root *RootValue) GetDatabaseSchemas(ctx context.Context) ([]schema.DatabaseSchema, error) { |
nothing calls this directly
no test coverage detected