MCPcopy
hub / github.com/wal-g/wal-g / exclude

Function exclude

internal/databases/sqlserver/sqlserver.go:442–454  ·  view source on GitHub ↗
(src, excl []string)

Source from the content-addressed store, hash-verified

440}
441
442func exclude(src, excl []string) []string {
443 var res []string
444SRC:
445 for _, r := range src {
446 for _, r2 := range excl {
447 if r2 == r {
448 continue SRC
449 }
450 }
451 res = append(res, r)
452 }
453 return res
454}
455
456func uniq(src []string) []string {
457 res := make([]string, 0, len(src))

Callers 2

getDatabasesToBackupFunction · 0.85
getDatabasesToRestoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected