IMigrondi Type
This is the main service that coordinates all of the other parts of this library. The main purpose of the Migrondi service is to provide a simple and straight forward way to Operate against the databases and the file system.
Instance members
Instance member | Description |
Full Usage:
this.DryRunDown
Parameters:
int
-
The amount of migrations to roll back
Returns: IReadOnlyList<Migration>
A list of all migrations that would be reverted
Modifiers: abstract |
|
Full Usage:
this.DryRunDownAsync
Parameters:
int
?cancellationToken : CancellationToken
Returns: Task<IReadOnlyList<Migration>>
Modifiers: abstract |
|
Full Usage:
this.DryRunUp
Parameters:
int
-
The amount of migrations to apply
Returns: IReadOnlyList<Migration>
A list of all migrations that would be applied
Modifiers: abstract |
|
Full Usage:
this.DryRunUpAsync
Parameters:
int
?cancellationToken : CancellationToken
Returns: Task<IReadOnlyList<Migration>>
Modifiers: abstract |
|
Full Usage:
this.Initialize
Modifiers: abstract |
|
Full Usage:
this.InitializeAsync
Parameters:
CancellationToken
Returns: Task
Modifiers: abstract |
|
Full Usage:
this.MigrationsList
Returns: IReadOnlyList<MigrationStatus>
A list of all migrations and their status
Modifiers: abstract |
This method coordinates between the source scripts and the database
|
Full Usage:
this.MigrationsListAsync
Parameters:
CancellationToken
Returns: Task<IReadOnlyList<MigrationStatus>>
Modifiers: abstract |
|
Full Usage:
this.RunDown
Parameters:
int
-
The amount of migrations to roll back
Returns: IReadOnlyList<MigrationRecord>
A list of all migrations that were reverted including previously applied ones
Modifiers: abstract |
This method coordinates between the source scripts and the database
|
Full Usage:
this.RunDownAsync
Parameters:
int
?cancellationToken : CancellationToken
Returns: Task<IReadOnlyList<MigrationRecord>>
Modifiers: abstract |
|
Full Usage:
this.RunNew
Parameters:
string
-
The friendly name of the migration, usually this comes from
the user's input
?upContent : string
-
The content of the up migration
?downContent : string
-
The content of the down migration
Returns: Migration
The newly created migration as a record
Modifiers: abstract |
|
Full Usage:
this.RunNewAsync
Parameters:
string
-
The friendly name of the migration, usually this comes from
the user's input
?upContent : string
-
The content of the up migration
?downContent : string
-
The content of the down migration
?cancellationToken : CancellationToken
-
A cancellation token to cancel the operation
Returns: Task<Migration>
The newly created migration as a record
Modifiers: abstract |
|
Full Usage:
this.RunUp
Parameters:
int
-
The amount of migrations to apply
Returns: IReadOnlyList<MigrationRecord>
A list of all migrations that were applied including previously applied ones
Modifiers: abstract |
This method coordinates between the source scripts and the database
|
Full Usage:
this.RunUpAsync
Parameters:
int
?cancellationToken : CancellationToken
Returns: Task<IReadOnlyList<MigrationRecord>>
Modifiers: abstract |
|
Full Usage:
this.ScriptStatus
Parameters:
string
-
The relative path to the migration file
Returns: MigrationStatus
The status of the migration
Modifiers: abstract |
This method coordinates between the source scripts and the database
|
Full Usage:
this.ScriptStatusAsync
Parameters:
string
?cancellationToken : CancellationToken
Returns: Task<MigrationStatus>
Modifiers: abstract |
|