MCPcopy
hub / github.com/rubenv/sql-migrate / AssetMigrationSource

Struct AssetMigrationSource

migrate.go:304–313  ·  view source on GitHub ↗

Migrations from a bindata asset set.

Source from the content-addressed store, hash-verified

302
303// Migrations from a bindata asset set.
304type AssetMigrationSource struct {
305 // Asset should return content of file in path if exists
306 Asset func(path string) ([]byte, error)
307
308 // AssetDir should return list of files in the path
309 AssetDir func(path string) ([]string, error)
310
311 // Path in the bindata to use.
312 Dir string
313}
314
315var _ MigrationSource = (*AssetMigrationSource)(nil)
316

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected