IMiFileSystem Type
This is an abstraction to the file system, it allows for custom implementations to either use a physical file system or even a virtual one. It provides both sync and async methods to read and write migrondi specific files.
Instance members
Instance member | Description | ||||
Full Usage:
this.ListMigrations
Parameters:
string
-
A path Relative to the RootPath that targets to the migration.
Returns: IReadOnlyList<Migration>
A Result that may contain a Migration object
or a ReadFileError
Modifiers: abstract |
|
||||
Full Usage:
this.ListMigrationsAsync
Parameters:
string
-
A path Relative to the RootPath that targets to the migration
?cancellationToken : CancellationToken
-
A cancellation token that can be used to cancel the operation
Returns: Task<IReadOnlyList<Migration>>
A Result that may contain a Migration object
or a ReadFileError
Modifiers: abstract |
|
||||
Full Usage:
this.ReadConfiguration
Parameters:
string
-
A path Relative to the RootPath that targets to the configuration file
Returns: MigrondiConfig
A MigrondiConfig object
Modifiers: abstract |
|
||||
Full Usage:
this.ReadConfigurationAsync
Parameters:
string
-
A path Relative to the RootPath that targets to the configuration file
?cancellationToken : CancellationToken
-
A cancellation token that can be used to cancel the operation
Returns: Task<MigrondiConfig>
A Result that may contain a MigrondiConfig object
or a ReadFileError
Modifiers: abstract |
|
||||
Full Usage:
this.ReadMigration
Parameters:
string
-
A path Relative to the RootPath that targets to the migration
Returns: Migration
A Result that may contain a Migration object
or a ReadFileError
Modifiers: abstract |
|
||||
Full Usage:
this.ReadMigrationAsync
Parameters:
string
-
A path Relative to the RootPath that targets to the migration
?cancellationToken : CancellationToken
-
A cancellation token that can be used to cancel the operation
Returns: Task<Migration>
A Result that may contain a Migration object
or a ReadFileError
Modifiers: abstract |
|
||||
Full Usage:
this.WriteConfiguration
Parameters:
MigrondiConfig
-
The configuration object
writeTo : string
-
The path to the configuration file
Modifiers: abstract |
|
||||
Full Usage:
this.WriteConfigurationAsync
Parameters:
MigrondiConfig
-
The configuration object
writeTo : string
-
The path to the configuration file
?cancellationToken : CancellationToken
-
A cancellation token that can be used to cancel the operation
Returns: Task
A unit result object that means that the operation was successful
or a ReadFileError
Modifiers: abstract |
|
||||
Full Usage:
this.WriteMigration
Parameters:
Migration
-
The migration object
migrationName : string
-
The path to the migration file
Modifiers: abstract |
|
||||
Full Usage:
this.WriteMigrationAsync
Parameters:
Migration
-
The migration object
migrationName : string
-
The path to the migration file
?cancellationToken : CancellationToken
-
A cancellation token that can be used to cancel the operation
Returns: Task
A unit result object that means that the operation was successful
Modifiers: abstract |
|