Storage represents an interface to almost any database or storage system
|
type Storage interface {
Init ( ) error
Close ( ) error
GetConnection ( ) * sql . DB
GetMigrations ( ) [ ] migration . Migration
GetDBDriverType ( ) types . DBDriver
GetDBSchema ( ) migration . Schema
GetMaxVersion ( ) migration . Version
MigrateToLatest ( ) error
}
|