crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
e87a8262
ROOT
/
go
/
libraries
/
doltcore
/
merge
/
merge_schema.go
Search
History
934 lines
|
UTF-8
|
26 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
conflictKind
TagCollision
:
conflictKind
NameCollision
ColumnCollision
InvalidCheckCollision
DeletedCheckCollision
SchemaConflict
TableName
:
string
ColConflicts
:
[]ColConflict
IdxConflicts
:
[]IdxConflict
ChkConflicts
:
[]ChkConflict
Count
()
:
int
AsError
()
:
error
EmptySchConflicts
ColConflict
Kind
:
conflictKind
Ours
:
schema.Column
Theirs
:
schema.Column
String
()
:
string
IdxConflict
Kind
:
conflictKind
Ours
:
schema.Index
Theirs
:
schema.Index
String
()
:
string
FKConflict
Kind
:
conflictKind
Ours
:
doltdb.ForeignKey
Theirs
:
doltdb.ForeignKey
ChkConflict
Kind
:
conflictKind
Ours
:
schema.Check
Theirs
:
schema.Check
String
()
:
string
ErrMergeWithDifferentPkSets
SchemaMerge
(ctx context.Context, format *types.NomsBinFormat, ourSch, theirSch, ancSch schema.Schema, tblName string)
:
(sch schema.Schema, sc SchemaConflict, err error)
ForeignKeysMerge
(ctx context.Context, mergedRoot, ourRoot, theirRoot, ancRoot *doltdb.RootValue)
:
(*doltdb.ForeignKeyCollection, []FKConflict, error)
mergeColumns
(ourCC, theirCC, ancCC *schema.ColCollection)
:
(merged *schema.ColCollection, conflicts []ColConflict, err error)
columnsInCommon
(ourCC, theirCC, ancCC *schema.ColCollection)
:
(common *schema.ColCollection, conflicts []ColConflict)
mergeIndexes
(mergedCC *schema.ColCollection, ourSch, theirSch, ancSch schema.Schema)
:
(merged schema.IndexCollection, conflicts []IdxConflict)
indexesInCommon
(mergedCC *schema.ColCollection, ours, theirs, anc schema.IndexCollection)
:
(common schema.IndexCollection, conflicts []IdxConflict)
indexCollSetDifference
(left, right schema.IndexCollection, cc *schema.ColCollection)
:
(d schema.IndexCollection)
foreignKeysInCommon
(ourFKs, theirFKs, ancFKs *doltdb.ForeignKeyCollection)
:
(common *doltdb.ForeignKeyCollection, conflicts []FKConflict, err error)
fkCollSetDifference
(fkColl, ancestorFkColl *doltdb.ForeignKeyCollection, ancSchs map[string]schema.Schema)
:
(d *doltdb.ForeignKeyCollection, err error)
pruneInvalidForeignKeys
(ctx context.Context, fkColl *doltdb.ForeignKeyCollection, mergedRoot *doltdb.RootValue)
:
(pruned *doltdb.ForeignKeyCollection, err error)
checksInCommon
(ourChks, theirChks, ancChks []schema.Check)
:
([]schema.Check, []ChkConflict)
chkCollectionSetDifference
(left, right []schema.Check)
:
[]schema.Check
chkCollectionSetIntersection
(left, right []schema.Check)
:
[]schema.Check
chkCollectionModified
(anc, child []schema.Check)
:
[]schema.Check
mergeChecks
(ctx context.Context, ourChks, theirChks, ancChks schema.CheckCollection)
:
([]schema.Check, []ChkConflict, error)
isCheckReferenced
(sch schema.Schema, chk schema.Check)
:
(bool, error)
All occurrences
Please wait...
Page is in error, reload to recover