Documentation ¶
Index ¶
- type ArgumentParser
- type DB
- type DBRepository
- func (_m *DBRepository) CreateMigrationsTableIfNeeded() error
- func (_m *DBRepository) GetAlreadyRunMigrationFilePaths(migrationsDirectoryAbsolutePath string) ([]string, error)
- func (_m *DBRepository) Ping() error
- func (_m *DBRepository) RegisterRunMigration(migrationFileName string) error
- func (_m *DBRepository) RunMigrationQuery(query string) error
- type DBRows
- type Display
- func (_m *Display) DisplayError(err error)
- func (_m *Display) DisplayErrorWithMessage(err error, message string)
- func (_m *Display) DisplayGeneralError(err error)
- func (_m *Display) DisplayHelp()
- func (_m *Display) DisplayInfo(message string)
- func (_m *Display) DisplayRunMigrations(migrations models.Collection)
- func (_m *Display) DisplaySetupError(err error)
- type Fetcher
- type File
- type FileRepository
- type FileSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgumentParser ¶ added in v1.1.0
ArgumentParser is an autogenerated mock type for the ArgumentParser type
func (*ArgumentParser) OptionString ¶ added in v1.1.0
func (_m *ArgumentParser) OptionString(name string, value string) *string
OptionString provides a mock function with given fields: name, value
func (*ArgumentParser) Parse ¶ added in v1.1.0
func (_m *ArgumentParser) Parse() error
Parse provides a mock function with given fields:
func (*ArgumentParser) ParseArguments ¶ added in v1.4.0
func (_m *ArgumentParser) ParseArguments(args []string) error
ParseArguments provides a mock function with given fields: args
func (*ArgumentParser) PositionalArguments ¶ added in v1.1.0
func (_m *ArgumentParser) PositionalArguments() []string
PositionalArguments provides a mock function with given fields:
type DB ¶
DB is an autogenerated mock type for the DB type
type DBRepository ¶
DBRepository is an autogenerated mock type for the DBRepository type
func (*DBRepository) CreateMigrationsTableIfNeeded ¶
func (_m *DBRepository) CreateMigrationsTableIfNeeded() error
CreateMigrationsTableIfNeeded provides a mock function with given fields:
func (*DBRepository) GetAlreadyRunMigrationFilePaths ¶
func (_m *DBRepository) GetAlreadyRunMigrationFilePaths(migrationsDirectoryAbsolutePath string) ([]string, error)
GetAlreadyRunMigrationFilePaths provides a mock function with given fields: migrationsDirectoryAbsolutePath
func (*DBRepository) Ping ¶
func (_m *DBRepository) Ping() error
Ping provides a mock function with given fields:
func (*DBRepository) RegisterRunMigration ¶
func (_m *DBRepository) RegisterRunMigration(migrationFileName string) error
RegisterRunMigration provides a mock function with given fields: migrationFileName
func (*DBRepository) RunMigrationQuery ¶
func (_m *DBRepository) RunMigrationQuery(query string) error
RunMigrationQuery provides a mock function with given fields: query
type DBRows ¶
DBRows is an autogenerated mock type for the DBRows type
type Display ¶ added in v1.4.0
Display is an autogenerated mock type for the Display type
func (*Display) DisplayError ¶ added in v1.4.0
DisplayError provides a mock function with given fields: err
func (*Display) DisplayErrorWithMessage ¶ added in v1.4.0
DisplayErrorWithMessage provides a mock function with given fields: err, message
func (*Display) DisplayGeneralError ¶ added in v1.4.0
DisplayGeneralError provides a mock function with given fields: err
func (*Display) DisplayHelp ¶ added in v1.4.0
func (_m *Display) DisplayHelp()
DisplayHelp provides a mock function with given fields:
func (*Display) DisplayInfo ¶ added in v1.5.0
DisplayInfo provides a mock function with given fields: message
func (*Display) DisplayRunMigrations ¶ added in v1.4.0
func (_m *Display) DisplayRunMigrations(migrations models.Collection)
DisplayRunMigrations provides a mock function with given fields: migrations
func (*Display) DisplaySetupError ¶ added in v1.4.0
DisplaySetupError provides a mock function with given fields: err
type Fetcher ¶
Fetcher is an autogenerated mock type for the Fetcher type
func (*Fetcher) GetMigrations ¶
func (_m *Fetcher) GetMigrations(migrationsDirectoryAbsolutePath string) (models.Collection, error)
GetMigrations provides a mock function with given fields: migrationsDirectoryAbsolutePath
type File ¶
File is an autogenerated mock type for the File type
type FileRepository ¶
FileRepository is an autogenerated mock type for the FileRepository type
func (*FileRepository) CreateMigration ¶ added in v1.5.0
func (_m *FileRepository) CreateMigration(migrationAbsolutePath string, query string) error
CreateMigration provides a mock function with given fields: migrationAbsolutePath, query
func (*FileRepository) GetMigrationFilePaths ¶
func (_m *FileRepository) GetMigrationFilePaths(migrationsDirectoryAbsolutePath string) ([]string, error)
GetMigrationFilePaths provides a mock function with given fields: migrationsDirectoryAbsolutePath
func (*FileRepository) GetMigrationQuery ¶
func (_m *FileRepository) GetMigrationQuery(migrationAbsolutePath string) (string, error)
GetMigrationQuery provides a mock function with given fields: migrationAbsolutePath
type FileSystem ¶
FileSystem is an autogenerated mock type for the FileSystem type
func (*FileSystem) ReadDir ¶
func (_m *FileSystem) ReadDir(dirname string) ([]fs.FileInfo, error)
ReadDir provides a mock function with given fields: dirname