MCPcopy Create free account
hub / github.com/dolthub/doltgresql / GetConflictRootObjects

Method GetConflictRootObjects

core/rootvalue.go:325–336  ·  view source on GitHub ↗

GetConflictRootObjects implements the interface doltdb.RootValue.

(ctx context.Context)

Source from the content-addressed store, hash-verified

323
324// GetConflictRootObjects implements the interface doltdb.RootValue.
325func (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.
339func (root *RootValue) GetDatabaseSchemas(ctx context.Context) ([]schema.DatabaseSchema, error) {

Callers

nothing calls this directly

Calls 2

LoadConflictsFunction · 0.92
IterAllMethod · 0.65

Tested by

no test coverage detected