migrate: add support for new Go io/fs.FS
This patch adds FromFS function and lets you use the new go:embed directive to add the migration files to the binary. Also, migration tests use an in memory FS impl instead of working with tmp directories.
This commit is contained in:
committed by
Michal Jan Matczuk
parent
7980a955be
commit
fe1498fe13
4
go.mod
4
go.mod
@@ -3,10 +3,10 @@ module github.com/scylladb/gocqlx/v2
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/gocql/gocql v0.0.0-20200131111108-92af2e088537
|
||||
github.com/golang/snappy v0.0.1 // indirect
|
||||
github.com/google/go-cmp v0.2.0
|
||||
github.com/google/go-cmp v0.5.4
|
||||
github.com/psanford/memfs v0.0.0-20210214183328-a001468d78ef
|
||||
github.com/scylladb/go-reflectx v1.0.1
|
||||
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a
|
||||
gopkg.in/inf.v0 v0.9.1
|
||||
|
||||
Reference in New Issue
Block a user