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

Function Init

core/rootobject/init.go:28–47  ·  view source on GitHub ↗

Init initializes the package

()

Source from the content-addressed store, hash-verified

26
27// Init initializes the package
28func Init() {
29 merge.MergeRootObjects = HandleMerge
30 pgmerge.CreateConflict = CreateConflict
31 conflicts.DeserializeRootObject = DeserializeRootObject
32 conflicts.DiffRootObjects = DiffRootObjects
33 conflicts.GetFieldType = GetFieldType
34 conflicts.ResolveNameExternal = resolveNameFromObjects
35 conflicts.UpdateField = UpdateField
36 doltdb.RootObjectDiffFromRow = objinterface.DiffFromRow
37 for _, collFuncs := range globalCollections {
38 if collFuncs == nil {
39 continue
40 }
41 serializer := collFuncs.Serializer()
42 storage.RootObjectSerializations = append(storage.RootObjectSerializations, storage.RootObjectSerialization{
43 Bytes: serializer.Bytes,
44 RootValueAdd: serializer.RootValueAdd,
45 })
46 }
47}

Callers 1

InitializeFunction · 0.92

Calls 1

SerializerMethod · 0.65

Tested by

no test coverage detected