mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-19 11:29:41 -05:00
Move IgnoredTables into ignore_patterns.go
This commit is contained in:
@@ -31,6 +31,13 @@ type ignorePattern struct {
|
||||
ignore bool
|
||||
}
|
||||
|
||||
// IgnoredTables contains the results of comparing a series of tables to a set of dolt_ignore patterns.
|
||||
type IgnoredTables struct {
|
||||
Ignore []string
|
||||
DontIgnore []string
|
||||
Conflicts []DoltIgnoreConflictError
|
||||
}
|
||||
|
||||
// IgnoreResult is an enum containing the result of matching a table name against the list of ignored table patterns
|
||||
type IgnoreResult int
|
||||
|
||||
|
||||
@@ -1055,12 +1055,6 @@ func UnionTableNames(ctx context.Context, roots ...*RootValue) ([]string, error)
|
||||
return tblNames, nil
|
||||
}
|
||||
|
||||
type IgnoredTables struct {
|
||||
Ignore []string
|
||||
DontIgnore []string
|
||||
Conflicts []DoltIgnoreConflictError
|
||||
}
|
||||
|
||||
// FilterIgnoredTables takes a slice of table names and divides it into new slices based on whether the table is ignored, not ignored, or matches conflicting ignore patterns.
|
||||
func FilterIgnoredTables(ctx context.Context, tables []string, roots Roots) (ignoredTables IgnoredTables, err error) {
|
||||
ignorePatterns, err := GetIgnoredTablePatterns(ctx, roots)
|
||||
|
||||
Reference in New Issue
Block a user