MCPcopy Create free account
hub / github.com/riverqueue/river / GetMigrationFS

Method GetMigrationFS

rivermigrate/river_migrate_test.go:44–56  ·  view source on GitHub ↗
(line string)

Source from the content-addressed store, hash-verified

42}
43
44func (d *driverWithAlternateLine) GetMigrationFS(line string) fs.FS {
45 switch line {
46 case riverdriver.MigrationLineMain:
47 return d.Driver.GetMigrationFS(line)
48 case migrationLineAlternate:
49 return migrationFS
50 case migrationLineAlternate + "2":
51 panic(line + " is only meant for testing line suggestions")
52 case migrationLineCommitRequired:
53 return migrationFS
54 }
55 panic("migration line does not exist: " + line)
56}
57
58func (d *driverWithAlternateLine) GetMigrationLines() []string {
59 return append(d.Driver.GetMigrationLines(), migrationLineAlternate, migrationLineAlternate+"2", migrationLineCommitRequired)

Callers

nothing calls this directly

Calls 1

GetMigrationFSMethod · 0.65

Tested by

no test coverage detected