Init initializes the package
()
| 26 | |
| 27 | // Init initializes the package |
| 28 | func 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 | } |
no test coverage detected