-
Notifications
You must be signed in to change notification settings - Fork 326
Implement shell "database" driver #171
Comments
I've been thinking about this for quite some time. I think the root issue why this issue has not been fixed is that the
To avoid having to implement a "shell driver" for every database backend, I instead propose that type Migrator interface {
Open(url string) (Driver, error)
Close() error
Run(migration io.Reader) error
}
type MigrationRepository interface {
Open(url string) (Driver, error)
Close() error
Lock() error
Unlock() error
SetVersion(version int, dirty bool) error
Version() (version int, dirty bool, err error)
Drop() error
} The nice thing is that all Clearly, this change would also require that CLI would take a What are you thoughts on this? |
I think there is a misunderstanding. When I wrote For your specific case, I believe the source driver is the equivalent to your proposed |
@mattes Hm, so if |
The |
@mattes Still, if you would implement |
No description provided.
The text was updated successfully, but these errors were encountered: